refactor: toNumber in getter
This commit is contained in:
1 parent
91ecadd168
commit
d762f9d191
2 files changed
+2
-2
No files matched your search
@@ -36,7 +36,7 @@ function normalizeDetailOptions(detailOptions) {
|
||||
switch (option.type) {
|
||||
case "int":
|
||||
validator.validateIntOption(normalizedValue, normalizedOption);
|
||||
break;
|
||||
return Number(normalizedValue);
|
||||
case "choice":
|
||||
validator.validateChoiceOption(normalizedValue, normalizedOption);
|
||||
break;
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ function getOptions(argv) {
|
||||
}
|
||||
|
||||
function getIntOption(argv, optionName) {
|
||||
return Number(argv[optionName]);
|
||||
return argv[optionName];
|
||||
}
|
||||
|
||||
function getTrailingComma(argv) {
|
||||
|
||||
Reference in new issue
Block a user