mirror of https://github.com/portainer/portainer
chore(errors): remove superfluous error handling EE-7192 (#11909)
parent
90a19cec5c
commit
4ba16f1b04
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue