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

Commit 047bb4f

Browse files
committed
unsigned values are never < 0
Signed-off-by: Christian Muehlhaeuser <[email protected]>
1 parent c363771 commit 047bb4f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: plumbing/format/idxfile/decoder.go

-4
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)