From 0bd59b7e99daf90fb72f98e3c0fe5770ea789108 Mon Sep 17 00:00:00 2001 From: Shubham Urkade Date: Tue, 27 Nov 2018 22:55:09 +0530 Subject: [PATCH] test: replace callback with arrows --- test/parallel/test-process-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-config.js b/test/parallel/test-process-config.js index 05f4ca915a5524..0cb7e8e8d590d7 100644 --- a/test/parallel/test-process-config.js +++ b/test/parallel/test-process-config.js @@ -48,7 +48,7 @@ let config = fs.readFileSync(configPath, 'utf8'); config = config.split('\n').slice(1).join('\n'); config = config.replace(/"/g, '\\"'); config = config.replace(/'/g, '"'); -config = JSON.parse(config, function(key, value) { +config = JSON.parse(config, (key, value) => { if (value === 'true') return true; if (value === 'false') return false; return value;