summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Krimmel2019-11-28 12:26:50 +0100
committerRalph Krimmel2019-11-28 14:00:34 +0100
commit9534cdafbfa42b3d80901c8e06807c62513784fd (patch)
tree60af1701a119262d77691152a93ce40ce4e6a705
parent3fb3ca54e9c038ad091d234b19f5bd64003f8321 (diff)
Making the linter happy by removing superfluous ;
Signed-off-by: Ralph Krimmel <rkrimme1@gwdg.de>
-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 + '/')
}