Skip to content

Commit

Permalink
fix: return value
Browse files Browse the repository at this point in the history
Co-authored-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Kyle Tarplee <kmtarplee@ieee.org>
  • Loading branch information
ktarplee and shizhMSFT authored Dec 29, 2023
1 parent 7e865b8 commit 68d75eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/remote/auth/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (fc *fallbackCache) GetToken(ctx context.Context, registry string, scheme S
func (fc *fallbackCache) Set(ctx context.Context, registry string, scheme Scheme, key string, fetch func(context.Context) (string, error)) (string, error) {
token, err := fc.primary.Set(ctx, registry, scheme, key, fetch)
if err != nil {
return token, err
return "", err
}

Check warning on line 209 in registry/remote/auth/cache.go

View check run for this annotation

Codecov / codecov/patch

registry/remote/auth/cache.go#L208-L209

Added lines #L208 - L209 were not covered by tests

return fc.secondary.Set(ctx, registry, scheme, key, func(ctx context.Context) (string, error) {
Expand Down

0 comments on commit 68d75eb

Please sign in to comment.