Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit a30d433

Browse files
committed
[fixed] JS.typecheck to disregard the contents of stderr when executing the flow typechecker, because it prints errors to stdout
1 parent 5488581 commit a30d433

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/JS.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ export class JS {
7878
if (error) {
7979
return logError(error);
8080
}
81-
flow.run((flowErr, stdout) => {
82-
if (flowErr) {
83-
return logError(flowErr);
84-
}
81+
flow.run((_, stdout) => {
8582
if (!JSON.parse(stdout).passed) {
8683
return flow.run(noop, [], {stdio: 'inherit'});
8784
}

0 commit comments

Comments
 (0)