File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
- .DS_Store
1
+ . *
2
+ ! /.gitignore
3
+ ! /.editorconfig
4
+ ! /.travis.yml
5
+ ! /.github
2
6
/node_modules
3
- . * .swp
4
- /.npmcache
5
7
/dist
6
8
* .log
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ module.exports = function () {
16
16
return allAddresses ;
17
17
} else {
18
18
throw e ;
19
- } ;
20
- } ;
19
+ }
20
+ }
21
21
22
22
Object . keys ( ifaces ) . forEach ( function ( iface ) {
23
23
var addresses = { } ;
24
24
var hasAddresses = false ;
25
25
ifaces [ iface ] . forEach ( function ( address ) {
26
26
if ( ! address . internal ) {
27
- var family = typeof address . family === 'number' ? "ipv" + address . family : address . family . toLowerCase ( ) || "" ;
27
+ var family = ( typeof address . family === 'number' )
28
+ ? ( "ipv" + address . family )
29
+ : ( address . family || "" ) . toLowerCase ( ) ;
28
30
addresses [ family ] = address . address ;
29
31
hasAddresses = true ;
30
32
if ( address . mac && address . mac !== '00:00:00:00:00:00' ) {
You can’t perform that action at this time.
0 commit comments