comments for codacy

This commit is contained in:
Pascal Fischer
2023-03-30 17:32:44 +02:00
parent 1343a3f00e
commit 454240ca05
4 changed files with 25 additions and 9 deletions

View File

@ -1123,6 +1123,7 @@ func (am *DefaultAccountManager) redeemInvite(account *Account, userID string) e
return nil
}
// MarkPATUsed marks a personal access token as used
func (am *DefaultAccountManager) MarkPATUsed(tokenID string) error {
unlock := am.Store.AcquireGlobalLock()
defer unlock()