From fa7c3a440b9edbaf3e97332f71eeee3e6bec0323 Mon Sep 17 00:00:00 2001 From: broo5658 Date: Sat, 25 Oct 2025 04:30:10 +0000 Subject: [PATCH] chore: use property shorthand to satisfy standard linter --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index ad289a7..417c57d 100755 --- a/index.js +++ b/index.js @@ -80,10 +80,10 @@ function findInterfacesDarwin (targets) { } const it = { - address: address, + address, currentAddress: getInterfaceMAC(device), - device: device, - port: port + device, + port } if (targets.length === 0) { @@ -139,10 +139,10 @@ function findInterfacesLinux (targets) { } const it = { - address: address, + address, currentAddress: getInterfaceMAC(device), - device: device, - port: port + device, + port } if (targets.length === 0) { @@ -350,7 +350,7 @@ function tryWindowsKey (key, device, mac) { const networkAdapterKeyPath = new Winreg({ hive: Winreg.HKLM, - key: key + key }) // we need to format the MAC a bit for Windows