Merge pull request #2939 from guo-sj/add_miss_return

Add missing return
This commit is contained in:
Chris Lu 2022-04-18 23:33:44 -07:00 committed by GitHub
commit 0a137e675d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)