mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-25 11:28:50 -05:00
Small noop to determine if suffix is out of range
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user