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 Dec 17, 2018
1 parent 9bfbb68 commit e050a57
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 e050a57

Please sign in to comment.