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.go6
1 files changed, 3 insertions, 3 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 e4c255f..59b1dc2 100644
--- a/vendor/github.com/google/go-github/github/users_keys.go
+++ b/vendor/github.com/google/go-github/github/users_keys.go
@@ -41,13 +41,13 @@ func (s *UsersService) ListKeys(user string, opt *ListOptions) ([]*Key, *Respons
return nil, nil, err
}
- keys := new([]*Key)
- resp, err := s.client.Do(req, keys)
+ var keys []*Key
+ resp, err := s.client.Do(req, &keys)
if err != nil {
return nil, resp, err
}
- return *keys, resp, err
+ return keys, resp, nil
}
// GetKey fetches a single public key.