Skip to content

Commit 3f2c6ce

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 f8ac170 commit 3f2c6ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-process-config.js‎

Lines changed: 1 addition & 1 deletion
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')returntrue;
5353
if(value==='false')returnfalse;
5454
returnvalue;

0 commit comments

Comments
 (0)