Skip to content

Commit

Permalink
Type update
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml committed Jan 8, 2025
1 parent 972cca0 commit 48506f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/commands/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function execute(allowOverwrite?: boolean, dryRun?: boolean, ignoreSecuri

common.printLevel1Message(`Check if need to update runtime directory, Java and/or node.js settings in Zowe YAML configuration`);
// node.home
let newNodeHome;
let newNodeHome: string;
const configNodeHome=zoweConfig.node?.home;
// only try to update if it's not defined
if (!configNodeHome || configNodeHome == 'DETECT') {
Expand All @@ -50,7 +50,7 @@ export function execute(allowOverwrite?: boolean, dryRun?: boolean, ignoreSecuri
}

// java.home
let newJavaHome;
let newJavaHome: string;
const configJavaHome=zoweConfig.java?.home;
// only try to update if it's not defined
if (!configJavaHome || configJavaHome == 'DETECT') {
Expand All @@ -59,7 +59,7 @@ export function execute(allowOverwrite?: boolean, dryRun?: boolean, ignoreSecuri
}

// zowe.runtimeDirectory
let newZoweRuntimeDir;
let newZoweRuntimeDir: string;
// do we have zowe.runtimeDirectory defined in zowe.yaml?
const configRuntimeDir = zoweConfig.zowe?.runtimeDirectory;
if (configRuntimeDir) {
Expand Down

0 comments on commit 48506f2

Please sign in to comment.