add missing return

This commit is contained in:
guosj 2022-04-19 14:16:32 +08:00
parent e27e52c05b
commit 94ad557d97

View file

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