aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-04-19 14:16:32 +0800
committerguosj <515878133@qq.com>2022-04-19 14:16:32 +0800
commit94ad557d974c658b181efb5d132491fbd58aee95 (patch)
treeffd803b66577a94218d2df3a69eb08579c2d169a
parente27e52c05b972bee606926a8a2e14d866c569470 (diff)
downloadseaweedfs-94ad557d974c658b181efb5d132491fbd58aee95.tar.xz
seaweedfs-94ad557d974c658b181efb5d132491fbd58aee95.zip
add missing return
-rw-r--r--weed/iamapi/iamapi_management_handlers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/iamapi/iamapi_management_handlers.go b/weed/iamapi/iamapi_management_handlers.go
index a7ca69f45..94003c46e 100644
--- a/weed/iamapi/iamapi_management_handlers.go
+++ b/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)