Skip to content

Commit a7c17c1

Browse files
hamnislaurazard
andauthored
Update cli/config/credentials/native_store.go
Co-authored-by: Laura Brehm <[email protected]>
1 parent 80174c1 commit a7c17c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cli/config/credentials/native_store.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ type nativeStore struct {
2323
// NewNativeStore creates a new native store that
2424
// uses a remote helper program to manage credentials.
2525
func NewNativeStore(file store, helperSuffix string) Store {
26-
var name string
27-
if filepath.IsAbs(helperSuffix) {
28-
name = helperSuffix
29-
} else {
30-
name = remoteCredentialsPrefix + helperSuffix
26+
name := helperSuffix
27+
if !filepath.IsAbs(name) {
28+
name = remoteCredentialsPrefix + name
3129
}
3230
return &nativeStore{
3331
programFunc: client.NewShellProgramFunc(name),

0 commit comments

Comments
 (0)