mirror of
https://github.com/minio/minio.git
synced 2025-11-27 20:58:55 -05:00
vet: Fix all the go vet complaints (#4029)
``` go tool vet -atomic -bool -copylocks -nilfunc \ -printf -shadow -rangeloops -unreachable \ -unsafeptr -unusedresult cmd/ ```
This commit is contained in:
@@ -534,10 +534,10 @@ func TestHealObjectXL(t *testing.T) {
|
||||
|
||||
var uploadedParts []completePart
|
||||
for _, partID := range []int{2, 1} {
|
||||
pInfo, err := obj.PutObjectPart(bucket, object, uploadID, partID,
|
||||
pInfo, err1 := obj.PutObjectPart(bucket, object, uploadID, partID,
|
||||
int64(len(data)), bytes.NewReader(data), "", "")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to upload a part - %v", err)
|
||||
if err1 != nil {
|
||||
t.Fatalf("Failed to upload a part - %v", err1)
|
||||
}
|
||||
uploadedParts = append(uploadedParts, completePart{
|
||||
PartNumber: pInfo.PartNumber,
|
||||
|
||||
Reference in New Issue
Block a user