Skip to content

Commit db28410

Browse files
committed
Minor lint fixes
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent 1ee8f68 commit db28410

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

cli/config/memory/store.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,17 @@ func (e *memoryStore) Get(serverAddress string) (types.AuthConfig, error) {
4343
}
4444

4545
func (e *memoryStore) GetAll() (map[string]types.AuthConfig, error) {
46-
credentials := make(map[string]types.AuthConfig)
46+
creds := make(map[string]types.AuthConfig)
4747

4848
if e.fallbackStore != nil {
4949
fileCredentials, err := e.fallbackStore.GetAll()
5050
if err == nil {
51-
credentials = fileCredentials
51+
creds = fileCredentials
5252
}
5353
}
5454

55-
// override the file credentials with the env credentials
56-
maps.Copy(credentials, e.memoryCredentials)
57-
return credentials, nil
55+
maps.Copy(creds, e.memoryCredentials)
56+
return creds, nil
5857
}
5958

6059
func (e *memoryStore) Store(authConfig types.AuthConfig) error {

0 commit comments

Comments
 (0)