Skip to content

Commit 6424367

Browse files
committed
fix: ineffassign report
1 parent 1e56e0d commit 6424367

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

matcher.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ type Matcher struct {
1414

1515
func (m *Matcher) getMatchingHashFromListNodeSearch() *NodeHash {
1616
hashes := m.currentNode.Hashes
17-
lower := int32(0)
1817
upper := m.currentNode.HashesCount - 1
19-
middle := int32(0)
18+
lower := int32(0)
2019
for lower <= upper {
21-
middle = lower + (upper-lower)/2
20+
middle := lower + (upper-lower)/2
2221
if hashes[middle].HashCode == m.hash {
2322
return &hashes[middle]
2423
} else if hashes[middle].HashCode > m.hash {

0 commit comments

Comments
 (0)