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 {
|
Success: func(at addTokenResult, values map[string]string, w http.ResponseWriter, r *http.Request) error {
|
||||||
// add the key to the user
|
// add the key to the user
|
||||||
tok, err := panel.dependencies.Tokens.Add(r.Context(), at.User.User.User, at.Description, at.Scopes)
|
tok, err := panel.dependencies.Tokens.Add(r.Context(), at.User.User.User, at.Description, at.Scopes)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errAddToken
|
return errAddToken
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,6 @@ func (auth *Auth) User(ctx context.Context, name string) (user *AuthUser, err er
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
user = &AuthUser{}
|
user = &AuthUser{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,9 +71,6 @@ func (instances *Instances) Create(slug string, system models.System) (wissKI *w
|
||||||
|
|
||||||
// docker image
|
// docker image
|
||||||
wissKI.Liquid.Instance.System = system
|
wissKI.Liquid.Instance.System = system
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// store the instance in the object and return it!
|
// store the instance in the object and return it!
|
||||||
return wissKI, nil
|
return wissKI, nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue