Small noop to determine if suffix is out of range

This commit is contained in:
Neil Macneale IV
2025-09-15 19:12:48 +00:00
parent de84412b9e
commit 0a65b854d9
+1 -1
View File
@@ -323,7 +323,7 @@ func (f *inMemoryArchiveIndexReader) getChunkRef(idx uint32) (dict, data uint32)
}
func (f *inMemoryArchiveIndexReader) getSuffix(idx uint32) suffix {
if idx >= uint32(len(f.suffixes)/hash.SuffixLen) {
if idx >= f.getNumChunks() {
return suffix{}
}
start := uint64(idx) * hash.SuffixLen