Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 28675ba

Browse files
mueslimcuadros
authored andcommitted
plumbing/format: idxfile, unsigned values are never < 0
Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 047bb4f)
1 parent 172a0d8 commit 28675ba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plumbing/format/idxfile/decoder.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ func readObjectNames(idx *MemoryIndex, r io.Reader) error {
110110
continue
111111
}
112112

113-
if buckets < 0 {
114-
return ErrMalformedIdxFile
115-
}
116-
117113
idx.FanoutMapping[k] = len(idx.Names)
118114

119115
nameLen := int(buckets * objectIDLength)

0 commit comments

Comments
 (0)