Skip to content

Commit 61fc7c0

Browse files
committed
fix(nginx): don't try to restart nginx when nginx isn't a thing
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
1 parent c3df8cb commit 61fc7c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/nginx/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ class NginxExtension extends cli.Extension {
227227
);
228228
}
229229

230+
if (!promises.length) {
231+
return Promise.resolve();
232+
}
233+
230234
return Promise.all(promises).then(() => this.restartNginx());
231235
}
232236

0 commit comments

Comments
 (0)