From f1216c446130eebda5fa8045aa005b612d66f3db Mon Sep 17 00:00:00 2001 From: oleiade Date: Mon, 15 Jan 2024 12:05:54 +0100 Subject: [PATCH] Fix linting errors --- webcrypto/test_setup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webcrypto/test_setup.go b/webcrypto/test_setup.go index cf7797e..abcec9a 100644 --- a/webcrypto/test_setup.go +++ b/webcrypto/test_setup.go @@ -1,7 +1,6 @@ package webcrypto import ( - "github.com/stretchr/testify/require" "io" "os" "path" @@ -11,6 +10,7 @@ import ( "go.k6.io/k6/js/compiler" "github.com/dop251/goja" + "github.com/stretchr/testify/require" "go.k6.io/k6/js/modulestest" ) @@ -66,10 +66,10 @@ func newConfiguredRuntime(t testing.TB) *modulestest.Runtime { // CompileFile compiles a javascript file as a goja.Program. func CompileFile(base, name string) (*goja.Program, error) { - fname := path.Join(base, name) + filename := path.Join(base, name) //nolint:forbidigo // Allow os.Open in tests - f, err := os.Open(filepath.Clean(fname)) + f, err := os.Open(filepath.Clean(filename)) if err != nil { return nil, err }