From 51c4b5bd45edaaadc1728b6065dffaf03ef615ba Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Mon, 18 Nov 2024 14:15:32 -0500 Subject: [PATCH] fix lint issue Signed-off-by: Grant Linville --- pkg/credentials/toolstore.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/credentials/toolstore.go b/pkg/credentials/toolstore.go index d66b0fd7..536e2aa1 100644 --- a/pkg/credentials/toolstore.go +++ b/pkg/credentials/toolstore.go @@ -43,14 +43,12 @@ func (h *toolCredentialStore) Get(serverAddress string) (types.AuthConfig, error } func (h *toolCredentialStore) GetAll() (map[string]types.AuthConfig, error) { - result := map[string]types.AuthConfig{} - serverAddresses, err := client.List(h.program) if err != nil { return nil, err } - result = make(map[string]types.AuthConfig, len(serverAddresses)) + result := make(map[string]types.AuthConfig, len(serverAddresses)) for serverAddress, val := range serverAddresses { // If the serverAddress contains a port, we need to put it back in the right spot. // For some reason, even when a credential is stored properly as http://hostname:8080///credctx,