Skip to content

Commit 1177cc5

Browse files
committed
Delete unused code
1 parent 3a4d12e commit 1177cc5

3 files changed

Lines changed: 1 addition & 56 deletions

File tree

bin/normalize-cli-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function normalizeCliCommand(command: string): string {
44
}
55

66
const quote = command[0];
7-
const last = command[command.length - 1];
7+
const last = command.at(-1);
88
if ((quote !== '"' && quote !== "'") || last !== quote) {
99
return command;
1010
}

lib/command-parser/strip-quotes.spec.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/command-parser/strip-quotes.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)