From 3f2c6ce9aad4a94e9f5bc9bde9a67f71ecf6f9d6 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 PR-URL: https://github.com/nodejs/node/pull/24866 Reviewed-By: Daniel Bevenius Reviewed-By: Denys Otrishko Reviewed-By: Trivikram Kamat --- 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;