diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-21 06:08:14 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2019-07-29 17:33:10 +0200 |
commit | 28675baffe8f5590401a96c5a0cb4fe0fc6f4da7 (patch) | |
tree | 599c05c65bb73ed65830941979dafed32baf2fc0 /plumbing | |
parent | 172a0d8a0e1e05d0bc47df09d50fb8ef49529f5f (diff) | |
download | go-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.go | 4 |
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) |