From 34d47f9e0cf66904432a3c774707b4773273ef4f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 4 Mar 2026 08:25:05 +0800 Subject: *: gofumpt --- refstore/reftable/lookup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'refstore') 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") } -- cgit v1.3.1-10-gc9f91