Skip to content

Commit 8f1b5ff

Browse files
authored
Merge pull request #16347 from ahaoboy/main
Remove redundant semicolons after onScriptComplete function close: #16346
2 parents 0f82297 + 04c2737 commit 8f1b5ff

File tree

2 files changed

+59
-60
lines changed

2 files changed

+59
-60
lines changed

lib/runtime/LoadScriptRuntimeModule.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ class LoadScriptRuntimeModule extends HelperRuntimeModule {
146146
)});`,
147147
"if(prev) return prev(event);"
148148
])
149-
) +
150-
";",
149+
),
151150
`var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), ${loadTimeout});`,
152151
"script.onerror = onScriptComplete.bind(null, script.onerror);",
153152
"script.onload = onScriptComplete.bind(null, script.onload);",

0 commit comments

Comments
 (0)