chore(errors): remove superfluous error handling EE-7192 (#11909)

This commit is contained in:
andres-portainer
2024-06-10 09:57:02 -03:00
committed by GitHub
parent 90a19cec5c
commit 4ba16f1b04

View File

@@ -44,9 +44,6 @@ func (handler *Handler) duplicateProfile(w http.ResponseWriter, r *http.Request)
}
profileID := handler.DataStore.FDOProfile().GetNextIdentifier()
if err != nil {
return httperror.InternalServerError("Unable to duplicate Profile", err)
}
newProfile := &portainer.FDOProfile{
ID: portainer.FDOProfileID(profileID),