Skip to content

Commit

Permalink
feat: apply minor improvements
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
  • Loading branch information
georgi-l95 committed Jan 29, 2024
1 parent d62974c commit dfb9d13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/services/CLIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export class CLIService implements IService{
type: 'string',
describe: 'Select custom network node tag',
demandOption: false,
default: 'default'
default: ''
});
}

Expand All @@ -565,7 +565,7 @@ export class CLIService implements IService{
type: 'string',
describe: 'Select custom mirror-node tag',
demandOption: false,
default: 'default'
default: ''
});
}

Expand All @@ -583,7 +583,7 @@ export class CLIService implements IService{
type: 'string',
describe: 'Select custom hedera-json-rpc relay tag',
demandOption: false,
default: 'default'
default: ''
});
}

Expand Down
6 changes: 3 additions & 3 deletions src/state/InitState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class InitState implements IState{
imageTagConfiguration.forEach(variable => {
const node = variable.key;
let tag = variable.value;
if (this.cliOptions.networkTag !== 'default' && (node === "NETWORK_NODE_IMAGE_TAG" || node === "HAVEGED_IMAGE_TAG")) {
if (this.cliOptions.networkTag && (node === "NETWORK_NODE_IMAGE_TAG" || node === "HAVEGED_IMAGE_TAG")) {
tag = this.cliOptions.networkTag;
} else if(this.cliOptions.mirrorTag !== 'default' && node === "MIRROR_IMAGE_TAG") {
} else if(this.cliOptions.mirrorTag && node === "MIRROR_IMAGE_TAG") {
tag = this.cliOptions.mirrorTag;
} else if(this.cliOptions.relayTag !== 'default' && node === "RELAY_IMAGE_TAG") {
} else if(this.cliOptions.relayTag && node === "RELAY_IMAGE_TAG") {
tag = this.cliOptions.relayTag;
}

Expand Down

0 comments on commit dfb9d13

Please sign in to comment.