Skip to content

Commit 5a94786

Browse files
committed
remove redundant comments
Signed-off-by: Dejan Zele Pejchev <[email protected]>
1 parent 5662c2a commit 5a94786

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/client/auth/oidc/cache.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ func NewTokenCache(providerUrl, clientId string) (*TokenCache, error) {
4343
WinCredPrefix: "armada",
4444
})
4545
if err != nil {
46-
log.Debug("No secure keyring backend available, token caching disabled")
4746
return nil, fmt.Errorf("no secure keyring backend available: %w", err)
4847
}
4948

@@ -67,7 +66,7 @@ func (tc *TokenCache) GetCachedRefreshToken() (string, error) {
6766
item, err := tc.ring.Get(key)
6867
if err != nil {
6968
if errors.Is(err, keyring.ErrKeyNotFound) {
70-
return "", nil // No cached token
69+
return "", nil
7170
}
7271
return "", fmt.Errorf("failed to get token from keyring: %w", err)
7372
}

0 commit comments

Comments
 (0)