fix: enable usestdlibvars linter (#7770)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-10-21 11:06:50 +02:00
committed by GitHub
parent 8d5dbc9fec
commit 57e24aa853
5 changed files with 8 additions and 5 deletions

View File

@@ -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)
}