Fixed eslint errors

This commit is contained in:
Tomas Bures 2017-04-23 15:24:31 -04:00
parent bb4eb3832f
commit 3072632d8d
7 changed files with 73 additions and 74 deletions

View file

@ -217,7 +217,7 @@ router.post('/delete', passport.parseForm, passport.csrfProtection, (req, res) =
});
});
router.get('/view/:id', passport.csrfProtection, (req, res) => {
router.get('/view/:id', (req, res) => {
reports.get(req.params.id, (err, report) => {
if (err || !report) {
req.flash('danger', err && err.message || err || _('Could not find report with specified ID'));
@ -269,7 +269,7 @@ router.get('/view/:id', passport.csrfProtection, (req, res) => {
});
});
router.get('/output/:id', passport.csrfProtection, (req, res) => {
router.get('/output/:id', (req, res) => {
reports.get(req.params.id, (err, report) => {
if (err || !report) {
req.flash('danger', err && err.message || err || _('Could not find report with specified ID'));