From 28675baffe8f5590401a96c5a0cb4fe0fc6f4da7 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 21 Jul 2019 06:08:14 +0200 Subject: plumbing/format: idxfile, unsigned values are never < 0 Signed-off-by: Christian Muehlhaeuser (cherry picked from commit 047bb4f6d0657389ddd4ca3230ff3bee08d66a6b) --- plumbing/format/idxfile/decoder.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'plumbing/format') diff --git a/plumbing/format/idxfile/decoder.go b/plumbing/format/idxfile/decoder.go index 5b92782..9e9c176 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) -- cgit