diff options
| author | 2026-03-04 08:25:05 +0800 | |
|---|---|---|
| committer | 2026-03-04 08:25:05 +0800 | |
| commit | 34d47f9e0cf66904432a3c774707b4773273ef4f (patch) | |
| tree | f639f1d5ab04ae10805901034517f51559639e7f /refstore | |
| parent | refstore/packed: Use os.Root (diff) | |
| signature | No signature | |
*: gofumpt
Diffstat (limited to 'refstore')
| -rw-r--r-- | refstore/reftable/lookup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refstore/reftable/lookup.go b/refstore/reftable/lookup.go index 724a3727..8862f7e6 100644 --- a/refstore/reftable/lookup.go +++ b/refstore/reftable/lookup.go @@ -225,7 +225,7 @@ func lookupChildPosInIndexBlock(block blockView, key string) (int, bool, error) } // lookupRecordInRefBlock searches one ref block and may short-circuit by sort order. -func lookupRecordInRefBlock(table *tableFile, block blockView, key string) (found bool, done bool, rec recordValue, err error) { +func lookupRecordInRefBlock(table *tableFile, block blockView, key string) (found, done bool, rec recordValue, err error) { off, recordsEnd, restarts, err := parseBlockLayout(block) if err != nil { return false, false, recordValue{}, err @@ -301,7 +301,7 @@ func forEachRecordInRefBlock(table *tableFile, block blockView, fn func(name str } // parseBlockLayout parses common record/restart regions for ref and index blocks. -func parseBlockLayout(block blockView) (recordsStart int, recordsEnd int, restarts []int, err error) { +func parseBlockLayout(block blockView) (recordsStart, recordsEnd int, restarts []int, err error) { if len(block.payload) < 6 { return 0, 0, nil, fmt.Errorf("short block") } |
