aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/licenses.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-02-12 22:24:33 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-02-12 22:24:33 +0000
commitba4840c52becf73c2749c9ef0f2f09ed0b9d5c7f (patch)
tree61b839884d66c9dd8269e26117aa4e4c995ad119 /vendor/github.com/google/go-github/github/licenses.go
parent6e00d0000e54f21a4a393e67fd914bda4d394f4a (diff)
Update dependencies
Diffstat (limited to 'vendor/github.com/google/go-github/github/licenses.go')
-rw-r--r--vendor/github.com/google/go-github/github/licenses.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/google/go-github/github/licenses.go b/vendor/github.com/google/go-github/github/licenses.go
index 0b5e8b3..a1fec94 100644
--- a/vendor/github.com/google/go-github/github/licenses.go
+++ b/vendor/github.com/google/go-github/github/licenses.go
@@ -67,13 +67,13 @@ func (s *LicensesService) List() ([]*License, *Response, error) {
// TODO: remove custom Accept header when this API fully launches
req.Header.Set("Accept", mediaTypeLicensesPreview)
- licenses := new([]*License)
- resp, err := s.client.Do(req, licenses)
+ var licenses []*License
+ resp, err := s.client.Do(req, &licenses)
if err != nil {
return nil, resp, err
}
- return *licenses, resp, err
+ return licenses, resp, nil
}
// Get extended metadata for one license.