From 94ad557d974c658b181efb5d132491fbd58aee95 Mon Sep 17 00:00:00 2001 From: guosj <515878133@qq.com> Date: Tue, 19 Apr 2022 14:16:32 +0800 Subject: [PATCH] add missing return --- weed/iamapi/iamapi_management_handlers.go | 1 + 1 file changed, 1 insertion(+) 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)