Browse Source

Merge pull request #2939 from guo-sj/add_miss_return

Add missing return
pull/2944/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
0a137e675d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/iamapi/iamapi_management_handlers.go

1
weed/iamapi/iamapi_management_handlers.go

@ -455,6 +455,7 @@ func (iama *IamApiServer) DoActions(w http.ResponseWriter, r *http.Request) {
case "DeleteUserPolicy":
if response, err = iama.DeleteUserPolicy(s3cfg, values); err != nil {
writeIamErrorResponse(w, r, err, "user", values.Get("UserName"), nil)
return
}
default:
errNotImplemented := s3err.GetAPIError(s3err.ErrNotImplemented)

Loading…
Cancel
Save