module: remove unnecessary JSON.stringify · nodejs/node@89285db · GitHub
Skip to content

Commit 89285db

Browse files
zertoshrvagg
authored andcommitted
module: remove unnecessary JSON.stringify
`debuglog` uses `%j` as a placeholder for replacement with `JSON.stringify`. So that `JSON.stringify` is only called when the appropriate debug flag is on. The other `%s` changes are for style consistency. PR-URL: #3578 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 8f5a255 commit 89285db

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

lib/module.js

Lines changed: 6 additions & 8 deletions

0 commit comments

Comments
 (0)