mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 11:46:06 +00:00
golangci-lint(noctx): fix test files
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -359,7 +359,6 @@ issues:
|
||||
- gosec
|
||||
- gosimple
|
||||
- nilerr
|
||||
- noctx
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- unconvert
|
||||
|
||||
@@ -907,7 +907,9 @@ func getVeleroCliTarball(cliTarballUrl string) (*os.File, error) {
|
||||
lastInd := strings.LastIndex(cliTarballUrl, "/")
|
||||
tarball := cliTarballUrl[lastInd+1:]
|
||||
|
||||
resp, err := http.Get(cliTarballUrl)
|
||||
cli := &http.Client{}
|
||||
req, _ := http.NewRequestWithContext(context.Background(), http.MethodGet, cliTarballUrl, nil)
|
||||
resp, err := cli.Do(req)
|
||||
if err != nil {
|
||||
return nil, errors.WithMessagef(err, "failed to access Velero CLI tarball")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user