aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/repos_hooks.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/repos_hooks.go
parent6e00d0000e54f21a4a393e67fd914bda4d394f4a (diff)
Update dependencies
Diffstat (limited to 'vendor/github.com/google/go-github/github/repos_hooks.go')
-rw-r--r--vendor/github.com/google/go-github/github/repos_hooks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/google/go-github/github/repos_hooks.go b/vendor/github.com/google/go-github/github/repos_hooks.go
index fe725b4..25f50b2 100644
--- a/vendor/github.com/google/go-github/github/repos_hooks.go
+++ b/vendor/github.com/google/go-github/github/repos_hooks.go
@@ -117,13 +117,13 @@ func (s *RepositoriesService) ListHooks(owner, repo string, opt *ListOptions) ([
return nil, nil, err
}
- hooks := new([]*Hook)
- resp, err := s.client.Do(req, hooks)
+ var hooks []*Hook
+ resp, err := s.client.Do(req, &hooks)
if err != nil {
return nil, resp, err
}
- return *hooks, resp, err
+ return hooks, resp, nil
}
// GetHook returns a single specified Hook.