Skip to content

Commit

Permalink
Fix iterator styling issues (#247)
Browse files Browse the repository at this point in the history
Issues reported in #246
  • Loading branch information
janisz authored Oct 8, 2020
1 parent 7bf29c0 commit 0afcdc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ func (it *EntryInfoIterator) SetNext() bool {

if empty {
return it.SetNext()
} else {
return true
}
return true
}

for i := it.currentShard + 1; i < it.cache.config.Shards; i++ {
Expand All @@ -93,9 +92,8 @@ func (it *EntryInfoIterator) SetNext() bool {

if empty {
return it.SetNext()
} else {
return true
}
return true
}
}
it.mutex.Unlock()
Expand Down

0 comments on commit 0afcdc4

Please sign in to comment.