Refactor isEnabled assignment

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-11-24 12:36:48 +02:00
1 parent 0421e8cb9f
commit 5c8a176071
1 file changed
+1 -6
+1 -6
View File
@@ -227,12 +227,7 @@ export class ExtensionDiscovery {
manifestJson = __non_webpack_require__(manifestPath); manifestJson = __non_webpack_require__(manifestPath);
const installedManifestPath = path.join(this.nodeModulesPath, manifestJson.name, "package.json"); const installedManifestPath = path.join(this.nodeModulesPath, manifestJson.name, "package.json");
this.packagesJson.dependencies[manifestJson.name] = path.dirname(manifestPath); this.packagesJson.dependencies[manifestJson.name] = path.dirname(manifestPath);
const isEnabled = isBundled || extensionsStore.isEnabled(installedManifestPath);
if (!isBundled) {
isEnabled = extensionsStore.isEnabled(installedManifestPath);
} else {
isEnabled = true;
}
return { return {
manifestPath: installedManifestPath, manifestPath: installedManifestPath,