We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cb3bfb + fd319d3 commit 71b147eCopy full SHA for 71b147e
lib/control.js
@@ -7,7 +7,7 @@ function parseConfig(config, options) {
7
c.badArgument(options);
8
}
9
10
- if (Number.isNaN(options.protocolVersion)) {
+ if (Number.isNaN(Number(options.protocolVersion))) {
11
12
13
@@ -66,7 +66,7 @@ async function set(config, options) {
66
67
68
if (!options.rawValue) {
69
- if (!Number.isNaN(options.set)) {
+ if (!Number.isNaN(Number(options.set))) {
70
options.set = Number.parseInt(options.set, 10);
71
} else if (options.set.toLowerCase() === 'true') {
72
options.set = true;
0 commit comments