chore: eslint no-var, vars-on-top

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:06:15 -07:00
committed by Julian Lam
parent b56d9e12b5
commit dab3b23575
255 changed files with 1988 additions and 1995 deletions

View File

@@ -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);
};