Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Jan 11, 2023
1 parent 4c8f1f5 commit 0ecada1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,14 +1180,14 @@ func (leaf *LeafNode) Commit() *Point {
if !bytes.Equal(oldValue, leaf.values[i]) {
if i < 128 {
if c1 == nil {
c1, old1 = leaf.getOldCn(byte(i))
c1, old1 = leaf.getOldCn(i)
}
leaf.updateCn(byte(i), oldValue, c1)
leaf.updateCn(i, oldValue, c1)
} else {
if c2 == nil {
c2, old2 = leaf.getOldCn(byte(i))
c2, old2 = leaf.getOldCn(i)
}
leaf.updateCn(byte(i), oldValue, c2)
leaf.updateCn(i, oldValue, c2)
}
}
}
Expand Down

0 comments on commit 0ecada1

Please sign in to comment.