mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-23 14:28:51 +01:00
fix linter
This commit is contained in:
parent
e869882da1
commit
2a79995706
@ -1128,7 +1128,6 @@ func (am *DefaultAccountManager) MarkPATUsed(tokenID string) error {
|
||||
defer unlock()
|
||||
|
||||
user, err := am.Store.GetUserByTokenID(tokenID)
|
||||
log.Debugf("User: %v", user)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -1145,9 +1144,7 @@ func (am *DefaultAccountManager) MarkPATUsed(tokenID string) error {
|
||||
|
||||
pat.LastUsed = time.Now()
|
||||
|
||||
am.Store.SaveAccount(account)
|
||||
|
||||
return nil
|
||||
return am.Store.SaveAccount(account)
|
||||
}
|
||||
|
||||
// GetAccountFromPAT returns Account and User associated with a personal access token
|
||||
|
Loading…
Reference in New Issue
Block a user