From 98d266152217915ea0a4e658718c4980109185ce Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 17:59:48 +0200 Subject: [PATCH] cli/command/image/build/context_test.go:244:38: `createTestTempDir` - `prefix` always receives `"builder-context-test"` (unparam) Signed-off-by: Silvin Lubecki (cherry picked from commit b83545ebbcd39c28db5c18dc133c985625572776) Signed-off-by: Sebastiaan van Stijn --- cli/command/image/build/context_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/image/build/context_test.go b/cli/command/image/build/context_test.go index b0e77058fa..622f8edbd1 100644 --- a/cli/command/image/build/context_test.go +++ b/cli/command/image/build/context_test.go @@ -241,6 +241,7 @@ func TestValidateContextDirectoryWithOneFileExcludes(t *testing.T) { // createTestTempDir creates a temporary directory for testing. // It returns the created path and a cleanup function which is meant to be used as deferred call. // When an error occurs, it terminates the test. +//nolint: unparam func createTestTempDir(t *testing.T, prefix string) (string, func()) { path, err := ioutil.TempDir("", prefix) assert.NilError(t, err)