Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Commit 9405d55

Browse files
committed
Fixed a bug where rsx run would not work at all
1 parent 0c1203c commit 9405d55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ let platforms = {
1212
module.exports = function run(args, callback) {
1313
log.heading = 'rsx-run';
1414
let platform = args[0];
15+
let onEnd = callback || (() => {});
1516

1617
if (Object.keys(platforms).indexOf(platform) === -1) {
1718

@@ -24,5 +25,5 @@ module.exports = function run(args, callback) {
2425
return;
2526
}
2627

27-
platforms[platform](callback);
28+
platforms[platform](onEnd);
2829
};

0 commit comments

Comments
 (0)