Skip to content

Commit

Permalink
fix: Delete redundant codes
Browse files Browse the repository at this point in the history
Signed-off-by: sawadashota <[email protected]>
  • Loading branch information
sawadashota committed Feb 20, 2022
1 parent 00a906e commit 1f9bd1c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions selfservice/flow/settings/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"net/http"
"time"

"github.com/ory/herodot"

"github.com/ory/kratos/text"
"github.com/ory/kratos/ui/node"

Expand Down Expand Up @@ -226,12 +224,6 @@ func (e *HookExecutor) PostSettingsHook(w http.ResponseWriter, r *http.Request,
return nil
}

i, ok := ctxUpdate.GetIdentityToUpdate()
if !ok {
// An identity to update must always be present.
return errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Could not find a identity to update."))
}

x.ContentNegotiationRedirection(w, r, i.CopyWithoutCredentials(), e.d.Writer(), returnTo.String())
return nil
}

0 comments on commit 1f9bd1c

Please sign in to comment.