Skip to content

Commit

Permalink
resolved old joining logic
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Aug 13, 2024
1 parent 35a3916 commit 9a10373
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/imperative/src/utilities/src/CliUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,7 @@ export class CliUtils {
let oldCmd: string;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable oldCmd.
if (handlerParms.definition.deprecatedReplacement || handlerParms.definition.deprecatedReplacement === "") {
// form the command that is deprecated
if (handlerParms.positionals.length >= 1) {
oldCmd = handlerParms.positionals[0];
}
if (handlerParms.positionals.length >= 2) {
oldCmd = oldCmd + " " + handlerParms.positionals[1];
}
const oldCmd = handlerParms.positionals.join(" ");
// display the message
handlerParms.response.console.error("\nWarning: The command '" + oldCmd + "' is deprecated.");
if(handlerParms.definition.deprecatedReplacement === "")
Expand Down

0 comments on commit 9a10373

Please sign in to comment.