Skip to content

Commit

Permalink
test: replace callback with arrows
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 refack committed Jan 10, 2019
1 parent 5b12fe0 commit d986abe
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 d986abe

Please sign in to comment.