Skip to content

Commit

Permalink
state consistency nits
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Feb 1, 2020
1 parent 39ea85a commit 5b65fc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/engines/javascriptcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class JavaScriptCoreInstaller extends Installer {
if (platform.startsWith('win')) {
return false;
}
return this.isSupported();
return super.shouldInstallByDefault();
}

static async resolveVersion(version) {
Expand Down
8 changes: 5 additions & 3 deletions src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ class EngineInstaller {

// Delete bin entries and engine assets
await Promise.all([
status.installed[this.config.id].binEntries
&& status.installed[this.config.id].binEntries.map((b) =>
fs.promises.unlink(path.join(ESVU_PATH, 'bin', b))),
status.installed[this.config.id]
&& status.installed[this.config.id].binEntries
&& status.installed[this.config.id].binEntries.map((b) =>
fs.promises.unlink(path.join(ESVU_PATH, 'bin', b))),

rmdir(path.join(ESVU_PATH, 'engines', this.config.id)),
]);

Expand Down

0 comments on commit 5b65fc7

Please sign in to comment.