mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-07 14:08:42 +00:00
Update deps
This commit is contained in:
6
vendor/github.com/google/go-github/github/pulls_comments.go
generated
vendored
6
vendor/github.com/google/go-github/github/pulls_comments.go
generated
vendored
@@ -74,13 +74,13 @@ func (s *PullRequestsService) ListComments(owner string, repo string, number int
|
||||
// TODO: remove custom Accept header when this API fully launches.
|
||||
req.Header.Set("Accept", mediaTypeReactionsPreview)
|
||||
|
||||
comments := new([]*PullRequestComment)
|
||||
resp, err := s.client.Do(req, comments)
|
||||
var comments []*PullRequestComment
|
||||
resp, err := s.client.Do(req, &comments)
|
||||
if err != nil {
|
||||
return nil, resp, err
|
||||
}
|
||||
|
||||
return *comments, resp, err
|
||||
return comments, resp, nil
|
||||
}
|
||||
|
||||
// GetComment fetches the specified pull request comment.
|
||||
|
||||
Reference in New Issue
Block a user