Skip to content

Commit

Permalink
more checks
Browse files Browse the repository at this point in the history
Signed-off-by: ekexium <[email protected]>
  • Loading branch information
ekexium committed Jan 23, 2025
1 parent 4c16a14 commit 916238e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions internal/unionstore/art/art_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,16 @@ func (it *Iterator) Valid() bool {
it.checkSeqNo()
return it.valid
}
func (it *Iterator) Key() []byte { return it.currLeaf.GetKey() }
func (it *Iterator) Flags() kv.KeyFlags { return it.currLeaf.GetKeyFlags() }
func (it *Iterator) Key() []byte {

Check failure on line 105 in internal/unionstore/art/art_iterator.go

View workflow job for this annotation

GitHub Actions / golangci

File is not `gofmt`-ed with `-s` (gofmt)
it.checkSeqNo()
return it.currLeaf.GetKey()
}
func (it *Iterator) Flags() kv.KeyFlags {
it.checkSeqNo()
return it.currLeaf.GetKeyFlags()
}
func (it *Iterator) Value() []byte {
it.checkSeqNo()
if it.currLeaf.vLogAddr.IsNull() {
return nil
}
Expand Down

0 comments on commit 916238e

Please sign in to comment.