From fb842ca1fc0ae8639fa63393e9b71926fb603b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 7 Jun 2024 16:13:29 +0300 Subject: [PATCH] Remove runJavaScript false linter warning This happens due to Sobek aliases. --- tests/test_browser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_browser.go b/tests/test_browser.go index c56ced2b3..d405d3665 100644 --- a/tests/test_browser.go +++ b/tests/test_browser.go @@ -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 {