fix a few eslint rules

This commit is contained in:
Matteo Pagliazzi
2015-09-25 15:58:39 +02:00
parent 5ac46716a3
commit a0f84bcf48
7 changed files with 27 additions and 27 deletions

View File

@@ -10,7 +10,7 @@ var i18n = require('../i18n');
// -------- App --------
router.get('/', i18n.getUserLanguage, locals, function(req, res) {
if (!req.headers['x-api-user'] && !req.headers['x-api-key'] && !(req.session && req.session.userId))
return res.redirect('/static/front')
return res.redirect('/static/front');
return res.render('index', {
title: 'Habitica | Your Life The Role Playing Game',
@@ -29,7 +29,7 @@ _.each(pages, function(name){
marked: require('marked')
});
});
})
});
// --------- Redirects --------