mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
lint: reenable revive unused-parameter check
Signed-off-by: Matt Souza <medsouz99@gmail.com>
This commit is contained in:
@@ -71,6 +71,6 @@ func (p *PodmanTestIntegration) StartRemoteService() {
|
||||
}
|
||||
|
||||
// Just a stub for compiling with `!remote`.
|
||||
func getRemoteOptions(p *PodmanTestIntegration, args []string) []string {
|
||||
func getRemoteOptions(_ *PodmanTestIntegration, _ []string) []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ func pullChunkedTests() { // included in pull_test.go, must use a Ginkgo DSL at
|
||||
// This is, nominally, a built-in feature of Ginkgo, but we run the tests with -vv, making the
|
||||
// full output always captured in a log. So, here, we need to conditionalize explicitly.
|
||||
var lastPullOutput bytes.Buffer
|
||||
ReportAfterEach(func(ctx SpecContext, report SpecReport) {
|
||||
ReportAfterEach(func(_ SpecContext, report SpecReport) {
|
||||
if report.Failed() {
|
||||
AddReportEntry("last pull operation", lastPullOutput.String())
|
||||
}
|
||||
@@ -156,7 +156,7 @@ func pullChunkedTests() { // included in pull_test.go, must use a Ginkgo DSL at
|
||||
modified[0] = digest.NewDigestFromEncoded(diffIDs[0].Algorithm(), hex.EncodeToString(digestBytes))
|
||||
return modified
|
||||
})
|
||||
chunkedMissing = createChunkedImage("missing", func(diffIDs []digest.Digest) []digest.Digest {
|
||||
chunkedMissing = createChunkedImage("missing", func(_ []digest.Digest) []digest.Digest {
|
||||
return nil
|
||||
})
|
||||
chunkedEmpty = createChunkedImage("empty", func(diffIDs []digest.Digest) []digest.Digest {
|
||||
|
||||
@@ -424,7 +424,7 @@ qe ssh://root@podman.test:2222/run/podman/podman.sock ~/.ssh/id_rsa false true
|
||||
pr.SetURL(baseURL)
|
||||
},
|
||||
Transport: &http.Transport{
|
||||
DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
|
||||
defer GinkgoRecover()
|
||||
By("Proxying to " + podmanTest.RemoteSocket)
|
||||
url, err := url.Parse(podmanTest.RemoteSocket)
|
||||
|
||||
Reference in New Issue
Block a user