mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-20 20:05:14 +00:00
Update deps
This commit is contained in:
6
vendor/github.com/google/go-github/github/orgs_hooks.go
generated
vendored
6
vendor/github.com/google/go-github/github/orgs_hooks.go
generated
vendored
@@ -22,13 +22,13 @@ func (s *OrganizationsService) ListHooks(org string, opt *ListOptions) ([]*Hook,
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user