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

pull/11920/head
andres-portainer 2024-06-10 09:57:02 -03:00 committed by GitHub
parent 90a19cec5c
commit 4ba16f1b04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

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),