aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-21 06:08:14 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2019-07-29 17:33:10 +0200
commit28675baffe8f5590401a96c5a0cb4fe0fc6f4da7 (patch)
tree599c05c65bb73ed65830941979dafed32baf2fc0 /plumbing
parent172a0d8a0e1e05d0bc47df09d50fb8ef49529f5f (diff)
downloadgo-git-28675baffe8f5590401a96c5a0cb4fe0fc6f4da7.tar.gz
plumbing/format: idxfile, unsigned values are never < 0
Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 047bb4f6d0657389ddd4ca3230ff3bee08d66a6b)
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/idxfile/decoder.go4
1 files changed, 0 insertions, 4 deletions
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)