module: remove unnecessary JSON.stringify
authorAndres Suarez <zertosh@gmail.com>
Thu, 29 Oct 2015 00:12:35 +0000 (17:12 -0700)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
commit5086a9c919f23630dcd6342c1126a0701cf499de
tree578a5fb492fd47bef447e6ec4e93e50f5d397ce2
parent13bec5440826a097944e5d24c43c151d8de9f82a
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: https://github.com/nodejs/node/pull/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>
lib/module.js