From 047bb4f6d0657389ddd4ca3230ff3bee08d66a6b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 21 Jul 2019 06:08:14 +0200 Subject: [PATCH] unsigned values are never < 0 Signed-off-by: Christian Muehlhaeuser --- plumbing/format/idxfile/decoder.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plumbing/format/idxfile/decoder.go b/plumbing/format/idxfile/decoder.go index 5b927826a..9e9c1769a 100644 --- a/plumbing/format/idxfile/decoder.go +++ b/plumbing/format/idxfile/decoder.go @@ -110,10 +110,6 @@ func readObjectNames(idx *MemoryIndex, r io.Reader) error { continue } - if buckets < 0 { - return ErrMalformedIdxFile - } - idx.FanoutMapping[k] = len(idx.Names) nameLen := int(buckets * objectIDLength)