mirror of
https://github.com/minio/minio.git
synced 2026-11-13 22:45:16 +00:00
cleanup ignored static analysis (#16767)
This commit is contained in:
1 parent
3423028713
commit
714283fae2
48 files changed
+182
-261
No files matched your search
@@ -149,8 +149,7 @@ func (h *Target) Init() error {
|
||||
xhttp.DrainBody(resp.Body)
|
||||
|
||||
if !acceptedResponseStatusCode(resp.StatusCode) {
|
||||
switch resp.StatusCode {
|
||||
case http.StatusForbidden:
|
||||
if resp.StatusCode == http.StatusForbidden {
|
||||
return fmt.Errorf("%s returned '%s', please check if your auth token is correctly set",
|
||||
h.config.Endpoint, resp.Status)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user