fix: misplaced write response command in DetachPolicy() (#16333)

This commit is contained in:
Taran Pelkey 2022-12-30 23:04:03 -05:00 committed by GitHub
parent 75faef888e
commit 49b3908635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1904,9 +1904,6 @@ func (a adminAPIHandlers) DetachPolicyBuiltin(w http.ResponseWriter, r *http.Req
return
}
}
// Return successful JSON response
writeSuccessNoContent(w)
}
userType := regUser
@ -1968,6 +1965,9 @@ func (a adminAPIHandlers) DetachPolicyBuiltin(w http.ResponseWriter, r *http.Req
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
return
}
// Return successful JSON response
writeSuccessNoContent(w)
}
const (