fix: lint errors after upgrading golangci-lint (#12368)

This commit is contained in:
Harshavardhana
2021-05-25 14:17:33 -07:00
committed by GitHub
parent ed4941a5f3
commit 4fd1378242
13 changed files with 26 additions and 50 deletions

View File

@@ -622,7 +622,7 @@ func (z *erasureServerPools) GetObjectNInfo(ctx context.Context, bucket, object
}
wg.Wait()
var found int = -1
var found = -1
for i, err := range errs {
if err == nil {
found = i
@@ -683,7 +683,7 @@ func (z *erasureServerPools) GetObjectInfo(ctx context.Context, bucket, object s
}
wg.Wait()
var found int = -1
var found = -1
for i, err := range errs {
if err == nil {
found = i