Skip to content

Commit 0203a97

Browse files
committed
changes as suggested in review comments
1 parent cde4336 commit 0203a97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/spec-node/featuresCLI/resolveDependencies.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,12 @@ async function featuresResolveDependencies({
7676
const cwd = workspaceFolder || process.cwd();
7777
const cliHost = await getCLIHost(cwd, loadNativeModule, true);
7878
const workspace = workspaceFromPath(cliHost.path, workspaceFolder);
79-
const configFile: URI | undefined = configPath ? URI.file(path.resolve(process.cwd(), configPath)) : undefined;
80-
const configs = configFile && await readDevContainerConfigFile(cliHost, workspace, configFile, false, output, undefined, undefined);
81-
79+
const configFile: URI = URI.file(path.resolve(process.cwd(), configPath));
80+
const configs = await readDevContainerConfigFile(cliHost, workspace, configFile, false, output, undefined, undefined);
81+
8282
if (configFile && !configs) {
8383
throw new ContainerError({ description: `Dev container config (${uriToFsPath(configFile, cliHost.platform)}) not found.` });
8484
}
85-
8685
const configWithRaw = configs!.config;
8786
const { config } = configWithRaw;
8887

0 commit comments

Comments
 (0)