summaryrefslogtreecommitdiff
path: root/lib/errors.js
diff options
context:
space:
mode:
authorRalph Krimmel2019-11-28 12:26:50 +0100
committerRalph Krimmel2019-11-28 12:26:50 +0100
commit32113e874d090bdb315b912e2a926dbbd31ccd38 (patch)
tree60af1701a119262d77691152a93ce40ce4e6a705 /lib/errors.js
parent3fb3ca54e9c038ad091d234b19f5bd64003f8321 (diff)
Making the linter happy by removing superfluous ;
Diffstat (limited to 'lib/errors.js')
-rw-r--r--lib/errors.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/errors.js b/lib/errors.js
index 56fb7027..f86e8aa3 100644
--- a/lib/errors.js
+++ b/lib/errors.js
@@ -7,7 +7,7 @@ module.exports = {
responseError(res, '403', 'Forbidden', 'oh no.')
} else {
if (!req.session) req.session = {}
- req.session.returnTo = req.originalUrl || config.serverUrl + '/';
+ req.session.returnTo = req.originalUrl || config.serverUrl + '/'
req.flash('error', 'You are not allowed to access this page. Maybe try logging in?')
res.redirect(config.serverURL + '/')
}