Skip to content

Commit 6a098d8

Browse files
fmt
1 parent bb17270 commit 6a098d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

codefresh/cfclient/api_key.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func (client *Client) GetAPIKey(userID string, accountId string, keyID string) (
4545
}
4646

4747
opts := RequestOptions{
48-
Path: fmt.Sprintf("/auth/key/%s", keyID),
48+
Path: fmt.Sprintf("/auth/key/%s", keyID),
4949
XAccessToken: xAccessToken,
50-
Method: "GET",
50+
Method: "GET",
5151
}
5252

5353
resp, err := client.RequestApiXAccessToken(&opts)
@@ -75,8 +75,8 @@ func (client *Client) DeleteAPIKey(userID string, accountId string, keyID string
7575
return err
7676
}
7777
opts := RequestOptions{
78-
Path: fmt.Sprintf("/auth/key/%s", keyID),
79-
Method: "DELETE",
78+
Path: fmt.Sprintf("/auth/key/%s", keyID),
79+
Method: "DELETE",
8080
XAccessToken: xAccessToken,
8181
}
8282

@@ -89,7 +89,7 @@ func (client *Client) DeleteAPIKey(userID string, accountId string, keyID string
8989
return nil
9090
}
9191

92-
func (client *Client) UpdateAPIKey(userID string, accountId string,key *ApiKey) error {
92+
func (client *Client) UpdateAPIKey(userID string, accountId string, key *ApiKey) error {
9393

9494
keyID := key.ID
9595
if keyID == "" {
@@ -111,10 +111,10 @@ func (client *Client) UpdateAPIKey(userID string, accountId string,key *ApiKey)
111111
}
112112

113113
opts := RequestOptions{
114-
Path: fmt.Sprintf("/auth/key/%s", keyID),
115-
Method: "PATCH",
114+
Path: fmt.Sprintf("/auth/key/%s", keyID),
115+
Method: "PATCH",
116116
XAccessToken: xAccessToken,
117-
Body: body,
117+
Body: body,
118118
}
119119

120120
resp, err := client.RequestApiXAccessToken(&opts)

0 commit comments

Comments
 (0)