mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
adds missing else clause (#10660)
This commit is contained in:
committed by
Sophie Alpert
parent
f76467e8e5
commit
c294b0995a
@@ -19,8 +19,10 @@ spawn(path.join('node_modules', '.bin', 'flow' + extension), ['check', '.'], {
|
||||
stdio: 'inherit',
|
||||
}).on('close', function(code) {
|
||||
if (code !== 0) {
|
||||
console.log('Flow failed');
|
||||
console.error('Flow failed');
|
||||
} else {
|
||||
console.log('Flow passed');
|
||||
}
|
||||
console.log('Flow passed');
|
||||
|
||||
process.exit(code);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user