Skip to content

Commit c47ad10

Browse files
committed
Lint
1 parent 8d02097 commit c47ad10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ function isCloneSwitch(char: string, arg: string | unknown) {
1212
return false;
1313
}
1414

15-
const token = arg
16-
.replace(/\0g/, '')
17-
.replace(/^(--no)?-{1,2}/, '')
18-
;
15+
const token = arg.replace(/\0g/, '').replace(/^(--no)?-{1,2}/, '');
1916
return /^[\dlsqvnobucj]+$/.test(token);
2017
}
2118

0 commit comments

Comments
 (0)