Skip to content

Commit

Permalink
Emit noop and finish if 'npm outdated' is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Jahn committed Nov 27, 2015
1 parent 21a753e commit e14a847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ function run(config, done) {
return;
}

if (!stdout) {
emitter.emit("noop");
finish();
return;
}

outdated = JSON.parse(stdout);
infos = Object.keys(outdated)
.map(function (moduleName) {
Expand Down

0 comments on commit e14a847

Please sign in to comment.