Skip to content

Commit fd52f0a

Browse files
authored
Remove redundant check in preMain. NFC (#23485)
`preMain` is only called from `run()` which already has an early return for this case.
1 parent 2bc4461 commit fd52f0a

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/preamble.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ function initRuntime() {
225225
function preMain() {
226226
#if STACK_OVERFLOW_CHECK
227227
checkStackCookie();
228-
#endif
229-
#if PTHREADS
230-
if (ENVIRONMENT_IS_PTHREAD) return; // PThreads reuse the runtime from the main thread.
231228
#endif
232229
<<< ATMAINS >>>
233230
callRuntimeCallbacks(__ATMAIN__);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4186
1+
4184
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8728
1+
8725

0 commit comments

Comments
 (0)