Skip to content

Commit a0fc440

Browse files
committed
Apply review feedbacks
1 parent d134ad4 commit a0fc440

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/src/embedded/js/executable.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import 'sync_receive_port.dart';
1313
import 'worker_threads.dart';
1414

1515
void main(List<String> args) {
16-
if (parseOptions(args)) {
17-
if (isMainThread) {
16+
if (isMainThread) {
17+
if (parseOptions(args)) {
1818
WorkerDispatcher(StreamChannel.withGuarantees(stdin, stdout,
1919
allowSinkErrors: false)
2020
.transform(lengthDelimited))
2121
.listen();
22-
} else {
23-
var port = workerData! as MessagePort;
24-
CompilationDispatcher(JSSyncReceivePort(port), JSSendPort(port)).listen();
2522
}
23+
} else {
24+
var port = workerData! as MessagePort;
25+
CompilationDispatcher(JSSyncReceivePort(port), JSSendPort(port)).listen();
2626
}
2727
}

0 commit comments

Comments
 (0)