mirror of https://github.com/go-redis/redis.git
fix comments
This commit is contained in:
parent
76c33da3ee
commit
cbf8ff22f5
|
@ -47,7 +47,7 @@ func (it *ScanIterator) Next() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
// Return if there is more data to fetch.
|
// Return if there is no more data to fetch.
|
||||||
if it.ScanCmd.cursor == 0 {
|
if it.ScanCmd.cursor == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,8 @@ func (it *ScanIterator) Next() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
it.pos = 1
|
it.pos = 1
|
||||||
|
|
||||||
|
// Redis can occasionally return empty page
|
||||||
if len(it.ScanCmd.page) > 0 {
|
if len(it.ScanCmd.page) > 0 {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue