Skip to content

Commit

Permalink
chore: rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Sep 25, 2024
1 parent 74ad3a7 commit 76323b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alby/alby_oauth_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ func (svc *albyOAuthService) CallbackHandler(ctx context.Context, code string, l
if err != nil {
logger.Logger.WithError(err).Error("Failed to fetch user me")
// remove token so user can retry
err2 := svc.cfg.SetUpdate(accessTokenKey, "", "")
if err2 != nil {
logger.Logger.WithError(err2).Error("failed to remove existing access token")
cfgErr := svc.cfg.SetUpdate(accessTokenKey, "", "")
if cfgErr != nil {
logger.Logger.WithError(cfgErr).Error("failed to remove existing access token")
}
return err
}
Expand Down

0 comments on commit 76323b9

Please sign in to comment.