mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
golint: fix redundant code logic (#7842)
Signed-off-by: Lei Liu <liul.stone@gmail.com>
This commit is contained in:
+1
-4
@@ -77,10 +77,7 @@ func (e *Erasure) DecodeDataBlocks(data [][]byte) error {
|
|||||||
if !needsReconstruction {
|
if !needsReconstruction {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if err := e.encoder.ReconstructData(data); err != nil {
|
return e.encoder.ReconstructData(data)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.
|
// DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.
|
||||||
|
|||||||
@@ -43,10 +43,7 @@ func setUpStore(directory string, limit uint16) (Store, error) {
|
|||||||
|
|
||||||
// Tear down store
|
// Tear down store
|
||||||
func tearDownStore() error {
|
func tearDownStore() error {
|
||||||
if err := os.RemoveAll(queueDir); err != nil {
|
return os.RemoveAll(queueDir)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestQueueStorePut - tests for store.Put
|
// TestQueueStorePut - tests for store.Put
|
||||||
|
|||||||
Reference in New Issue
Block a user