Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Jan 15, 2024
1 parent dbc24fe commit f1216c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webcrypto/test_setup.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package webcrypto

import (
"github.com/stretchr/testify/require"
"io"
"os"
"path"
Expand All @@ -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"
)

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit f1216c4

Please sign in to comment.