No need to build extra string

This commit is contained in:
Shane Kilkelly 2016-07-01 15:04:13 +01:00
parent 8855d0fa0f
commit 6938f1d055

View file

@ -82,7 +82,7 @@ module.exports = UserController =
logout : (req, res)-> logout : (req, res)->
metrics.inc "user.logout" metrics.inc "user.logout"
logger.log user: req?.session?.user, "logging out" logger.log user: req?.session?.user, "logging out"
sessionId = "#{req.sessionID}" sessionId = req.sessionID
user = req?.session?.user user = req?.session?.user
req.session.destroy (err)-> req.session.destroy (err)->
if err if err