Skip to content

Commit 2353a17

Browse files
committed
Address PR review comments
1 parent 2ffd446 commit 2353a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/security_advisories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
type SecurityAdvisoriesService service
1414

1515
// RequestCVE requests a Common Vulnerabilities and Exposures (CVE) for a repository security advisory.
16+
// The ghsaID is the GitHub Security Advisory identifier of the advisory.
1617
//
1718
// GitHub API docs: https://docs.github.com/en/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory
1819
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,
2425
}
2526

2627
resp, err := s.client.Do(ctx, req, nil)
27-
2828
if err != nil {
2929
if _, ok := err.(*AcceptedError); ok {
3030
return resp, nil

0 commit comments

Comments
 (0)