From 9896bf1ad5bf1bcdefc067ecae3c0af1fe7a608c Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 31 Dec 2017 22:27:02 -0500 Subject: [PATCH] Array output must be let, not const, to filter before sending to device. --- lib/wifi/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wifi/index.js b/lib/wifi/index.js index 59ae41c..96d282c 100644 --- a/lib/wifi/index.js +++ b/lib/wifi/index.js @@ -34,7 +34,7 @@ class Wifi { return callback(err) } const lines = stdout.split('\n') - const output = [] + let output = [] let line for (let l of lines) { line = l.replace('ESSID:', '').trim()