Fix some warnings

golangci-lint linter: unparam

This primarily fixes TestProxy to test the correct image

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-02-13 18:55:37 +01:00
parent 371604ba27
commit 4beb3f0af9
8 changed files with 21 additions and 27 deletions

View File

@@ -230,7 +230,7 @@ type byteFetch struct {
}
func runTestGetManifestAndConfig(p *proxy, img string) error {
v, err := p.callNoFd("OpenImage", []any{knownNotManifestListedImageX8664})
v, err := p.callNoFd("OpenImage", []any{img})
if err != nil {
return err
}
@@ -245,7 +245,7 @@ func runTestGetManifestAndConfig(p *proxy, img string) error {
}
// Also verify the optional path
v, err = p.callNoFd("OpenImageOptional", []any{knownNotManifestListedImageX8664})
v, err = p.callNoFd("OpenImageOptional", []any{img})
if err != nil {
return err
}