Skip to content

Commit

Permalink
Merge pull request #2233 from zowe/fix-coverity-issues
Browse files Browse the repository at this point in the history
Add missing question mark
  • Loading branch information
t1m0thyj authored Aug 13, 2024
2 parents c5c5df1 + 99baf5f commit d17867d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/imperative/src/cmd/src/utils/CommandUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export class CommandUtils {
if (CommandUtils.optionWasSpecified(option, commandDefinition, commandArguments)) {
// don't print "true" for boolean options
command += " " + CliUtils.getDashFormOfOption(option) + " ";
command += CommandUtils.getOptionDefinitionFromName(option, commandDefinition).type
=== "boolean" ? "" : commandArguments[option];
command += CommandUtils.getOptionDefinitionFromName(option, commandDefinition)?.type === "boolean" ? "" : commandArguments[option];
}
}
return command.trim();
Expand Down

0 comments on commit d17867d

Please sign in to comment.