mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -80,7 +80,7 @@ Hooks.register = function (id, data) {
|
||||
};
|
||||
|
||||
Hooks.unregister = function (id, hook, method) {
|
||||
var hooks = plugins.loadedHooks[hook] || [];
|
||||
const hooks = plugins.loadedHooks[hook] || [];
|
||||
plugins.loadedHooks[hook] = hooks.filter(hookData => hookData && hookData.id !== id && hookData.method !== method);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user