Skip to content

Commit e8d96b6

Browse files
xmonaderunknwon
authored andcommitted
Update user_key.go (#29)
Fixing ListMyPublicKeys
1 parent 01270df commit e8d96b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_key.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func (c *Client) ListPublicKeys(user string) ([]*PublicKey, error) {
2525
return keys, c.getParsedResponse("GET", fmt.Sprintf("/users/%s/keys", user), nil, nil, &keys)
2626
}
2727

28-
func (c *Client) ListMyPublicKeys(user string) ([]*PublicKey, error) {
28+
func (c *Client) ListMyPublicKeys() ([]*PublicKey, error) {
2929
keys := make([]*PublicKey, 0, 10)
30-
return keys, c.getParsedResponse("GET", fmt.Sprintf("/user/keys", user), nil, nil, &keys)
30+
return keys, c.getParsedResponse("GET", "/user/keys", nil, nil, &keys)
3131
}
3232

3333
func (c *Client) GetPublicKey(keyID int64) (*PublicKey, error) {

0 commit comments

Comments
 (0)