Skip to content

Commit

Permalink
Don't do next on NewIterator (hypermodeinc#1512)
Browse files Browse the repository at this point in the history
Signed-off-by: thomassong <[email protected]>
  • Loading branch information
mYmNeo committed Sep 4, 2024
1 parent dbfa680 commit 42c0567
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion table/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ type Iterator struct {
func (t *Table) NewIterator(reversed bool) *Iterator {
t.IncrRef() // Important.
ti := &Iterator{t: t, reversed: reversed}
ti.next()
return ti
}

Expand Down

0 comments on commit 42c0567

Please sign in to comment.