We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e0fb27 commit 3526cfbCopy full SHA for 3526cfb
src/ap-calc/script.ts
@@ -44,7 +44,7 @@ async function main() {
44
log.warn("Using '5' as fallback value for --max");
45
apMax = 144;
46
}
47
- if (nodeCost && isNaN(nodeCost) && nodeCost < 1) {
+ if (typeof nodeCost == "number" && (isNaN(nodeCost) || nodeCost < 1)) {
48
log.error(
49
`Could not parse argument for --node '${args.values.node}'. Argument must integer > 0`
50
);
0 commit comments