mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix a few eslint rules
This commit is contained in:
@@ -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 --------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user