mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
golint: fix redundant code logic (#7842)
Signed-off-by: Lei Liu <liul.stone@gmail.com>
This commit is contained in:
@@ -43,10 +43,7 @@ func setUpStore(directory string, limit uint16) (Store, error) {
|
||||
|
||||
// Tear down store
|
||||
func tearDownStore() error {
|
||||
if err := os.RemoveAll(queueDir); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return os.RemoveAll(queueDir)
|
||||
}
|
||||
|
||||
// TestQueueStorePut - tests for store.Put
|
||||
|
||||
Reference in New Issue
Block a user