From 2353a1712fc7adb91c73b78c97d0f8dc4feb20ea Mon Sep 17 00:00:00 2001 From: be0x74a Date: Tue, 8 Aug 2023 13:04:58 +0100 Subject: [PATCH] Address PR review comments --- github/security_advisories.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/security_advisories.go b/github/security_advisories.go index dfba0a1d49d..a75fce54d95 100644 --- a/github/security_advisories.go +++ b/github/security_advisories.go @@ -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) { @@ -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