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:
Harshavardhana
2017-04-01 01:06:06 -07:00
committed by GitHub
parent 2bd694dbc8
commit 4de6b15fca
5 changed files with 15 additions and 14 deletions

View File

@@ -1162,9 +1162,9 @@ func TestHealUploadHandler(t *testing.T) {
for i, test := range testCases {
// Prepare query params.
queryVal := mkHealUploadQuery(test.bucket, test.object, uploadID, test.dryrun)
req, err := buildAdminRequest(queryVal, "upload", http.MethodPost, 0, nil)
if err != nil {
t.Fatalf("Test %d - Failed to construct heal object request - %v", i+1, err)
req, err1 := buildAdminRequest(queryVal, "upload", http.MethodPost, 0, nil)
if err1 != nil {
t.Fatalf("Test %d - Failed to construct heal object request - %v", i+1, err1)
}
rec := httptest.NewRecorder()
adminTestBed.mux.ServeHTTP(rec, req)