Remove unneeded error checks
This commit is contained in:
parent
e259872bb5
commit
b45233b87c
3 changed files with 0 additions and 9 deletions
|
|
@ -169,9 +169,6 @@ func (panel *UserPanel) tokensAddRoute(ctx context.Context) http.Handler {
|
|||
Success: func(at addTokenResult, values map[string]string, w http.ResponseWriter, r *http.Request) error {
|
||||
// add the key to the user
|
||||
tok, err := panel.dependencies.Tokens.Add(r.Context(), at.User.User.User, at.Description, at.Scopes)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
return errAddToken
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue