style: fix typo (#1592)

* style: fix typo

* style: add comment
This commit is contained in:
MaineK00n
2023-02-22 15:59:47 +09:00
committed by GitHub
parent 897fef24a3
commit 4e486dae1d
13 changed files with 16 additions and 1 deletions

View File

@@ -310,6 +310,7 @@ type GitHubSecurityAlert struct {
DismissReason string `json:"dismissReason"`
}
// RepoURLPackageName returns a string connecting the repository and package name
func (a GitHubSecurityAlert) RepoURLPackageName() string {
return fmt.Sprintf("%s %s", a.Repository, a.Package.Name)
}
@@ -319,6 +320,7 @@ func (a GitHubSecurityAlert) RepoURLManifestPath() string {
return fmt.Sprintf("%s/%s", a.Repository, a.Package.ManifestPath)
}
// GSAVulnerablePackage has vulnerable package information
type GSAVulnerablePackage struct {
Name string `json:"name"`
Ecosystem string `json:"ecosystem"`