Skip to content

Commit

Permalink
Code simplification. Issue #32.
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Jul 13, 2018
1 parent 5e8f8fb commit a063a7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/local/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ public static function get_wireless_interface_name() {
$iter = new \RegexIterator($iter, '|^.*/wireless$|i', \RecursiveRegexIterator::GET_MATCH);
$iter->setMaxDepth(2);

$interface = explode('/', array_keys(iterator_to_array($iter))[0])[4];

return $interface;
return explode('/', array_keys(iterator_to_array($iter))[0])[4];
}

}

0 comments on commit a063a7e

Please sign in to comment.