mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add missing return
This commit is contained in:
parent
e27e52c05b
commit
94ad557d97
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue