Skip to content

Commit

Permalink
Address PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
be0x74a committed Aug 8, 2023
1 parent 2ffd446 commit 2353a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/security_advisories.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
type SecurityAdvisoriesService service

// RequestCVE requests a Common Vulnerabilities and Exposures (CVE) for a repository security advisory.
// The ghsaID is the GitHub Security Advisory identifier of the advisory.
//
// GitHub API docs: https://docs.github.com/en/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory
func (s *SecurityAdvisoriesService) RequestCVE(ctx context.Context, owner, repo, ghsaID string) (*Response, error) {
Expand All @@ -24,7 +25,6 @@ func (s *SecurityAdvisoriesService) RequestCVE(ctx context.Context, owner, repo,
}

resp, err := s.client.Do(ctx, req, nil)

if err != nil {
if _, ok := err.(*AcceptedError); ok {
return resp, nil
Expand Down

0 comments on commit 2353a17

Please # to comment.