Skip to content

Commit 3c4b91a

Browse files
committed
fix: linter nitpick
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 02e3c18 commit 3c4b91a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kv.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,9 @@ func (r *Reader) SearchIndexEntryWithPrefix(prefix []byte, last bool) (*IndexEnt
327327
return nil, 0, nil // Not found in empty set, insertion point 0
328328
}
329329
i, j := 0, count-1
330+
330331
var matchedEntry *IndexEntry
331-
var matchedIdx int = -1 // Initialize to indicate no match found yet
332+
matchedIdx := -1 // Initialize to indicate no match found yet
332333
for i <= j {
333334
// Calculate midpoint avoiding potential overflow of i+j
334335
h := i + (j-i)/2

0 commit comments

Comments
 (0)