Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <grant@acorn.io>
  • Loading branch information
g-linville authored and ibuildthecloud committed Nov 18, 2024
1 parent b1c9204 commit 51c4b5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/credentials/toolstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 51c4b5b

Please sign in to comment.