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

Commit 065ba5c

Browse files
author
Ivan Mirić
committed
Remove nil check processing JS arguments in WaitForFunction
See f54363b#r73031131
1 parent cac0206 commit 065ba5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/frame.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,9 +1550,7 @@ func (f *Frame) WaitForFunction(fn goja.Value, opts goja.Value, jsArgs ...goja.V
15501550

15511551
args := make([]interface{}, 0, len(jsArgs))
15521552
for _, a := range jsArgs {
1553-
if a != nil {
1554-
args = append(args, a.Export())
1555-
}
1553+
args = append(args, a.Export())
15561554
}
15571555

15581556
var polling interface{} = parsedOpts.Polling

0 commit comments

Comments
 (0)