Skip to content

Commit

Permalink
test: replace callback with arrows
Browse files Browse the repository at this point in the history
PR-URL: #24866
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Shubhamurkade authored and BethGriggs committed Feb 20, 2019
1 parent ee4203e commit 1b16ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-process-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b16ca4

Please sign in to comment.