server: Fix CI build complaints (#4119)

- Ineffassign fixes.
- Spell check correction.
This commit is contained in:
Karthic Rao
2017-04-14 20:30:04 +05:30
committed by Harshavardhana
parent a7afa469e2
commit 5f065e2a96
4 changed files with 6 additions and 6 deletions

View File

@@ -867,11 +867,11 @@ func testWebHandlerDownloadZip(obj ObjectLayer, instanceType string, t TestErrHa
apiRouter.ServeHTTP(rec, req)
return rec.Code, rec.Body.Bytes()
}
code, data := test("")
code, _ := test("")
if code != 403 {
t.Fatal("Expected to receive authentication error")
}
code, data = test(authorization)
code, data := test(authorization)
if code != 200 {
t.Fatal("web.DownloadsZip() failed")
}