Skip to content

Commit

Permalink
Move the main helper removal case to the main path on RemoveAllAuthen…
Browse files Browse the repository at this point in the history
…tication

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Jun 30, 2022
1 parent 0943aa3 commit 85f6e3a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/docker/config/config.go
Expand Up @@ -469,14 +469,13 @@ func RemoveAllAuthentication(sys *types.SystemContext) error {
// It's okay if the helper doesn't exist.
continue
} else {
// fall through
break
}
} else {
for registry := range creds {
err = deleteAuthFromCredHelper(helper, registry)
if err != nil {
break
}
}
for registry := range creds {
err = deleteAuthFromCredHelper(helper, registry)
if err != nil {
break
}
}
}
Expand Down

0 comments on commit 85f6e3a

Please sign in to comment.