Skip to content

Commit 51c4b5b

Browse files
g-linvilleibuildthecloud
authored andcommitted
fix lint issue
Signed-off-by: Grant Linville <[email protected]>
1 parent b1c9204 commit 51c4b5b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/credentials/toolstore.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ func (h *toolCredentialStore) Get(serverAddress string) (types.AuthConfig, error
4343
}
4444

4545
func (h *toolCredentialStore) GetAll() (map[string]types.AuthConfig, error) {
46-
result := map[string]types.AuthConfig{}
47-
4846
serverAddresses, err := client.List(h.program)
4947
if err != nil {
5048
return nil, err
5149
}
5250

53-
result = make(map[string]types.AuthConfig, len(serverAddresses))
51+
result := make(map[string]types.AuthConfig, len(serverAddresses))
5452
for serverAddress, val := range serverAddresses {
5553
// If the serverAddress contains a port, we need to put it back in the right spot.
5654
// For some reason, even when a credential is stored properly as http://hostname:8080///credctx,

0 commit comments

Comments
 (0)