Skip to content

Commit c384750

Browse files
fix: proper err on return
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c474b0c commit c384750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maas-api/internal/token/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (m *Manager) RevokeTokens(ctx context.Context, user *UserContext) error {
8888

8989
saName, errName := m.sanitizeServiceAccountName(user.Username)
9090
if errName != nil {
91-
return fmt.Errorf("failed to sanitize service account name for user %s: %w", user.Username, err)
91+
return fmt.Errorf("failed to sanitize service account name for user %s: %w", user.Username, errName)
9292
}
9393

9494
_, err = m.serviceAccountLister.ServiceAccounts(namespace).Get(saName)

0 commit comments

Comments
 (0)