Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ffcc1f5

Browse files
committed
Remove runJavaScript false linter warning
This happens due to Sobek aliases.
1 parent c7cfc9a commit ffcc1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_browser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func (b *testBrowser) runtime() *sobek.Runtime { return b.vu.Runtime() }
291291
func (b *testBrowser) toSobekValue(i any) sobek.Value { return b.runtime().ToValue(i) }
292292

293293
// runJavaScript in the sobek runtime.
294-
func (b *testBrowser) runJavaScript(s string, args ...any) (sobek.Value, error) {
294+
func (b *testBrowser) runJavaScript(s string, args ...any) (sobek.Value, error) { //nolint:unparam
295295
b.t.Helper()
296296
v, err := b.runtime().RunString(fmt.Sprintf(s, args...))
297297
if err != nil {

0 commit comments

Comments
 (0)