codacy and lint hints

This commit is contained in:
Pascal Fischer
2023-03-20 11:44:12 +01:00
parent 628a201e31
commit b852198f67
7 changed files with 53 additions and 24 deletions

View File

@ -206,11 +206,8 @@ func (am *DefaultAccountManager) AddPATToUser(accountID string, userID string, p
user.PATs = append(user.PATs, pat)
if err = am.Store.SaveAccount(account); err != nil {
return err
}
return nil
err = am.Store.SaveAccount(account)
return err
}
// SaveUser saves updates a given user. If the user doesn't exit it will throw status.NotFound error.