Lint issues only
This commit is contained in:
parent
26fff7e5d8
commit
b33de0ce94
@ -30,7 +30,7 @@ function parseOutput(str, callback) {
|
|||||||
'ssid' : lines[i].substr(0, macStart).trim(),
|
'ssid' : lines[i].substr(0, macStart).trim(),
|
||||||
'mac' : elements[0].trim(),
|
'mac' : elements[0].trim(),
|
||||||
'channel' : parseInt(elements[2].trim(), 10),
|
'channel' : parseInt(elements[2].trim(), 10),
|
||||||
'rssi' : parseInt(elements[1].trim())
|
'rssi' : parseInt(elements[1].trim(), 10)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ function parseOutput(str, callback) {
|
|||||||
// A tricky one: the channel is the first one having just ONE number. Set only
|
// 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 the channel is not already set ("Basic Rates" can be a single number also)
|
||||||
if (regexChannel.exec(lines[t].trim())) {
|
if (regexChannel.exec(lines[t].trim())) {
|
||||||
network.channel = parseInt(lines[t].split(':')[1].trim());
|
network.channel = parseInt(lines[t].split(':')[1].trim(), 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user