summaryrefslogtreecommitdiff
path: root/test/parallel/test-os.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-04-27 17:27:05 -0700
committerRich Trott <rtrott@gmail.com>2017-05-01 15:56:58 -0700
commita180259e428fbc3e220abdceb74d941482b87d40 (patch)
tree03377e9542c521963dbf6708b6b829899a7abaf7 /test/parallel/test-os.js
parentdd20e68b0feb966c2a7439c947bbb4d46e3b19fe (diff)
downloadandroid-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.tar.gz
android-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.tar.bz2
android-node-v8-a180259e428fbc3e220abdceb74d941482b87d40.zip
test,lib,doc: use function declarations
Replace function expressions with function declarations in preparation for a lint rule requiring function declarations. PR-URL: https://github.com/nodejs/node/pull/12711 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-os.js')
-rw-r--r--test/parallel/test-os.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js
index 848e7963b2..6092c411a8 100644
--- a/test/parallel/test-os.js
+++ b/test/parallel/test-os.js
@@ -116,7 +116,7 @@ const interfaces = os.networkInterfaces();
switch (platform) {
case 'linux':
{
- const filter = function(e) { return e.address === '127.0.0.1'; };
+ const filter = (e) => e.address === '127.0.0.1';
const actual = interfaces.lo.filter(filter);
const expected = [{ address: '127.0.0.1', netmask: '255.0.0.0',
mac: '00:00:00:00:00:00', family: 'IPv4',
@@ -126,7 +126,7 @@ switch (platform) {
}
case 'win32':
{
- const filter = function(e) { return e.address === '127.0.0.1'; };
+ const filter = (e) => e.address === '127.0.0.1';
const actual = interfaces['Loopback Pseudo-Interface 1'].filter(filter);
const expected = [{ address: '127.0.0.1', netmask: '255.0.0.0',
mac: '00:00:00:00:00:00', family: 'IPv4',