Skip to content

Commit

Permalink
fix(nginx): don't try to restart nginx when nginx isn't a thing
Browse files Browse the repository at this point in the history
no issue
- if no promises are added to the array during uninstall, it means nginx isn't installed and we don't actually need to restart it
  • Loading branch information
acburdine committed Jul 21, 2017
1 parent c3df8cb commit 61fc7c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/nginx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ class NginxExtension extends cli.Extension {
);
}

if (!promises.length) {
return Promise.resolve();
}

return Promise.all(promises).then(() => this.restartNginx());
}

Expand Down

0 comments on commit 61fc7c0

Please sign in to comment.