fix error not being returned

This commit is contained in:
Chris Lu 2020-10-08 23:19:20 -07:00
parent b067853162
commit b2ee5873fb

View File

@ -158,7 +158,7 @@ func (c *ChunkReadAt) readFromWholeChunkData(chunkView *ChunkView, nextChunkView
v, doErr := c.readOneWholeChunk(chunkView)
if doErr != nil {
return
return nil, doErr
}
chunkData = v.([]byte)