Skip to content

Commit

Permalink
Remove runJavaScript false linter warning
Browse files Browse the repository at this point in the history
This happens due to Sobek aliases.
  • Loading branch information
inancgumus committed Jun 7, 2024
1 parent daa1c39 commit fb842ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (b *testBrowser) runtime() *sobek.Runtime { return b.vu.Runtime() }
func (b *testBrowser) toSobekValue(i any) sobek.Value { return b.runtime().ToValue(i) }

// runJavaScript in the sobek runtime.
func (b *testBrowser) runJavaScript(s string, args ...any) (sobek.Value, error) {
func (b *testBrowser) runJavaScript(s string, args ...any) (sobek.Value, error) { //nolint:unparam
b.t.Helper()
v, err := b.runtime().RunString(fmt.Sprintf(s, args...))
if err != nil {
Expand Down

0 comments on commit fb842ca

Please sign in to comment.