Fix null error; Fix promise
This commit is contained in:
@ -41,7 +41,7 @@ function parseOutput(str, callback) {
|
||||
// Basic rates (MBit/s) : 1 2 5.5 11
|
||||
// Other rates (MBit/s) : 6 9 12 18 24 36 48 54
|
||||
for (let i = 1, l = blocks.length; i < l; i++) {
|
||||
let network = {};
|
||||
let network = {encrypted: false};
|
||||
let lines = blocks[i].split('\n');
|
||||
let regexChannel = /[a-zA-Z0-9()\s]+:[\s]*[0-9]+$/g;
|
||||
if (!lines || lines.length < 2) {
|
||||
|
Reference in New Issue
Block a user