aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/users_keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/users_keys.go')
-rw-r--r--vendor/github.com/google/go-github/github/users_keys.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/github.com/google/go-github/github/users_keys.go b/vendor/github.com/google/go-github/github/users_keys.go
index 59b1dc2..ebc333f 100644
--- a/vendor/github.com/google/go-github/github/users_keys.go
+++ b/vendor/github.com/google/go-github/github/users_keys.go
@@ -20,10 +20,10 @@ func (k Key) String() string {
return Stringify(k)
}
-// ListKeys lists the verified public keys for a user. Passing the empty
+// ListKeys lists the verified public keys for a user. Passing the empty
// string will fetch keys for the authenticated user.
//
-// GitHub API docs: http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
+// GitHub API docs: https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
func (s *UsersService) ListKeys(user string, opt *ListOptions) ([]*Key, *Response, error) {
var u string
if user != "" {
@@ -52,7 +52,7 @@ func (s *UsersService) ListKeys(user string, opt *ListOptions) ([]*Key, *Respons
// GetKey fetches a single public key.
//
-// GitHub API docs: http://developer.github.com/v3/users/keys/#get-a-single-public-key
+// GitHub API docs: https://developer.github.com/v3/users/keys/#get-a-single-public-key
func (s *UsersService) GetKey(id int) (*Key, *Response, error) {
u := fmt.Sprintf("user/keys/%v", id)
@@ -67,12 +67,12 @@ func (s *UsersService) GetKey(id int) (*Key, *Response, error) {
return nil, resp, err
}
- return key, resp, err
+ return key, resp, nil
}
// CreateKey adds a public key for the authenticated user.
//
-// GitHub API docs: http://developer.github.com/v3/users/keys/#create-a-public-key
+// GitHub API docs: https://developer.github.com/v3/users/keys/#create-a-public-key
func (s *UsersService) CreateKey(key *Key) (*Key, *Response, error) {
u := "user/keys"
@@ -87,12 +87,12 @@ func (s *UsersService) CreateKey(key *Key) (*Key, *Response, error) {
return nil, resp, err
}
- return k, resp, err
+ return k, resp, nil
}
// DeleteKey deletes a public key.
//
-// GitHub API docs: http://developer.github.com/v3/users/keys/#delete-a-public-key
+// GitHub API docs: https://developer.github.com/v3/users/keys/#delete-a-public-key
func (s *UsersService) DeleteKey(id int) (*Response, error) {
u := fmt.Sprintf("user/keys/%v", id)