diff --git a/api/http/handler/hostmanagement/fdo/profile_duplicate.go b/api/http/handler/hostmanagement/fdo/profile_duplicate.go index 117ef1311..ea5402e14 100644 --- a/api/http/handler/hostmanagement/fdo/profile_duplicate.go +++ b/api/http/handler/hostmanagement/fdo/profile_duplicate.go @@ -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),