Skip to content

Commit f66b6ce

Browse files
committed
changes after review
1 parent 790983c commit f66b6ce

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cli/config/credentials/native_store.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package credentials
22

33
import (
4+
"path/filepath"
5+
46
"github.com/docker/cli/cli/config/types"
57
"github.com/docker/docker-credential-helpers/client"
68
"github.com/docker/docker-credential-helpers/credentials"
7-
"path/filepath"
89
)
910

1011
const (
@@ -23,9 +24,10 @@ type nativeStore struct {
2324
// NewNativeStore creates a new native store that
2425
// uses a remote helper program to manage credentials.
2526
func NewNativeStore(file store, helperSuffix string) Store {
26-
name := helperSuffix
27-
if !filepath.IsAbs(name) {
28-
name = remoteCredentialsPrefix + name
27+
name = remoteCredentialsPrefix + name
28+
29+
if filepath.IsAbs(helperSuffix) {
30+
name = helperSuffix
2931
}
3032
return &nativeStore{
3133
programFunc: client.NewShellProgramFunc(name),

0 commit comments

Comments
 (0)