Lint issues only

This commit is contained in:
Christian Kuster 2016-06-08 19:41:44 +02:00
parent 26fff7e5d8
commit b33de0ce94
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function parseOutput(str, callback) {
'ssid' : lines[i].substr(0, macStart).trim(),
'mac' : elements[0].trim(),
'channel' : parseInt(elements[2].trim(), 10),
'rssi' : parseInt(elements[1].trim())
'rssi' : parseInt(elements[1].trim(), 10)
});
}
}

View File

@ -71,7 +71,7 @@ function parseOutput(str, callback) {
// A tricky one: the channel is the first one having just ONE number. Set only
// if the channel is not already set ("Basic Rates" can be a single number also)
if (regexChannel.exec(lines[t].trim())) {
network.channel = parseInt(lines[t].split(':')[1].trim());
network.channel = parseInt(lines[t].split(':')[1].trim(), 10);
}
}
}