GUI Versioned storages - launching VS fixed
@@ -115,13 +115,7 @@ export default function getToolLaunchingOptions (
};
const latestVersion = extractSettings(options.find(o => o.version === 'latest'));
const currentVersion = extractSettings(options.find(o => o.version === toolVersion));
- if (!latestVersion && !currentVersion) {
- if (toolVersion === 'latest') {
- reject(new Error('Latest version not found'));
- } else {
- reject(new Error(`Latest and ${toolVersion} versions not found`));
- }
- } else {
+
const versionSettingValue = (settingName) => {
if (currentVersion) {
return currentVersion[settingName];
@@ -181,7 +175,6 @@ export default function getToolLaunchingOptions (
})
.catch(reject);
}
- }
})
.catch(reject);
});
