mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-02-05 00:03:51 +08:00
fix: enable usestdlibvars linter (#7770)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -703,7 +703,7 @@ func (p *Parser) remoteRepoRequest(repo string, paths []string) (*http.Request,
|
||||
paths = append([]string{repoURL.Path}, paths...)
|
||||
repoURL.Path = path.Join(paths...)
|
||||
|
||||
req, err := http.NewRequest("GET", repoURL.String(), http.NoBody)
|
||||
req, err := http.NewRequest(http.MethodGet, repoURL.String(), http.NoBody)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("unable to create HTTP request: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user