Skip to content

Commit

Permalink
removed list.shift()
Browse files Browse the repository at this point in the history
  • Loading branch information
pxe-la authored and friedrith committed Jul 2, 2020
1 parent afe2c2c commit 3a7e6bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/linux-current-connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ function getCurrentConnection(config, callback) {
}

var lines = scanResults.split('\n');
if (config.iface) {
lines.shift();
}

var networks = [];
for (var i = 0; i < lines.length; i++) {
Expand Down
4 changes: 0 additions & 4 deletions src/linux-scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ function scanWifi(config, callback) {

var lines = scanResults.split('\n');

if (config.iface) {
lines.shift();
}

var networks = [];
for (var i = 0; i < lines.length; i++) {
if (lines[i] != '' && lines[i].includes(':')) {
Expand Down

0 comments on commit 3a7e6bc

Please sign in to comment.