Skip to content

Commit bb711ae

Browse files
committed
style(cli): format number parse condition for prettier
1 parent 3af26c7 commit bb711ae

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/cli.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,7 @@ const parseValueForArgumentConfig = (argConfig, value) => {
624624
break;
625625
case "number":
626626
if (typeof value === "number") return value;
627-
if (
628-
typeof value === "string" &&
629-
DECIMAL_NUMBER_REGEXP.test(value)
630-
) {
627+
if (typeof value === "string" && DECIMAL_NUMBER_REGEXP.test(value)) {
631628
const n = Number(value);
632629
if (!Number.isNaN(n)) return n;
633630
}

0 commit comments

Comments
 (0)