mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -52,7 +52,7 @@ async function rewrite(req, res, next) {
|
||||
exports.rewrite = rewrite;
|
||||
|
||||
function pluginHook(req, res, next) {
|
||||
var hook = `action:homepage.get:${res.locals.homePageRoute}`;
|
||||
const hook = `action:homepage.get:${res.locals.homePageRoute}`;
|
||||
|
||||
plugins.hooks.fire(hook, {
|
||||
req: req,
|
||||
|
||||
Reference in New Issue
Block a user