From 4e3819603b0adcb45e387cc6c3e1606c64f31b85 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 10 Mar 2014 19:00:23 -0400 Subject: [PATCH] jshint fixed missing var --- src/routes/user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/routes/user.js b/src/routes/user.js index db25182b2a..0465091046 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -1,3 +1,5 @@ +'use strict'; + var fs = require('fs'), path = require('path'), winston = require('winston'), @@ -79,7 +81,7 @@ var fs = require('fs'), next(); }); } else if (req.path.indexOf('/settings') !== -1 || req.path.indexOf('/favourites') !== -1) { - res.redirect('/403') + res.redirect('/403'); } else { next(); } @@ -94,7 +96,7 @@ var fs = require('fs'), if(err) { return next(err); } - res.send(header + app.create_route('user/' + req.params.userslug + path, templateName) + templates['footer']); + res.send(header + app.create_route('user/' + req.params.userslug + path, templateName) + templates.footer); }); }); } @@ -524,7 +526,7 @@ var fs = require('fs'), } var onlineUsers = []; - uid = 0; + var uid = 0; if (req.user) { uid = req.user.uid; }