golint: fix redundant code logic (#7842)

Signed-off-by: Lei Liu <liul.stone@gmail.com>
This commit is contained in:
iliul
2019-06-27 17:48:33 +08:00
committed by Nitish Tiwari
parent 183ec094c4
commit d3f9f8be88
2 changed files with 2 additions and 8 deletions

View File

@@ -77,10 +77,7 @@ func (e *Erasure) DecodeDataBlocks(data [][]byte) error {
if !needsReconstruction {
return nil
}
if err := e.encoder.ReconstructData(data); err != nil {
return err
}
return nil
return e.encoder.ReconstructData(data)
}
// DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.