fix linter

This commit is contained in:
Pascal Fischer 2023-03-30 16:22:15 +02:00
parent e869882da1
commit 2a79995706

View File

@ -1128,7 +1128,6 @@ func (am *DefaultAccountManager) MarkPATUsed(tokenID string) error {
defer unlock() defer unlock()
user, err := am.Store.GetUserByTokenID(tokenID) user, err := am.Store.GetUserByTokenID(tokenID)
log.Debugf("User: %v", user)
if err != nil { if err != nil {
return err return err
} }
@ -1145,9 +1144,7 @@ func (am *DefaultAccountManager) MarkPATUsed(tokenID string) error {
pat.LastUsed = time.Now() pat.LastUsed = time.Now()
am.Store.SaveAccount(account) return am.Store.SaveAccount(account)
return nil
} }
// GetAccountFromPAT returns Account and User associated with a personal access token // GetAccountFromPAT returns Account and User associated with a personal access token