Skip to content

Commit e050a57

Browse files
ShubhamurkadeBethGriggs
authored andcommitted
test: replace callback with arrows
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>
1 parent 9bfbb68 commit e050a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let config = fs.readFileSync(configPath, 'utf8');
4848
config = config.split('\n').slice(1).join('\n');
4949
config = config.replace(/"/g, '\\"');
5050
config = config.replace(/'/g, '"');
51-
config = JSON.parse(config, function(key, value) {
51+
config = JSON.parse(config, (key, value) => {
5252
if (value === 'true') return true;
5353
if (value === 'false') return false;
5454
return value;

0 commit comments

Comments
 (0)