From f61638f24a924c48606977e38920eac07c7251e2 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Fri, 28 Jun 2024 23:10:23 +0100 Subject: *: Small fixes to remove linter warnings Signed-off-by: Paulo Gomes --- plumbing/format/index/decoder.go | 1 - 1 file changed, 1 deletion(-) (limited to 'plumbing/format/index') diff --git a/plumbing/format/index/decoder.go b/plumbing/format/index/decoder.go index f43b1c5..fc25d37 100644 --- a/plumbing/format/index/decoder.go +++ b/plumbing/format/index/decoder.go @@ -225,7 +225,6 @@ func (d *Decoder) readExtensions(idx *Index) error { peeked, err = d.buf.Peek(peekLen) if len(peeked) < peekLen { // there can't be an extension at this point, so let's bail out - err = nil break } if err != nil { -- cgit