add spaces before and after else

This commit is contained in:
Arlen Beiler 2026-01-07 17:01:16 +00:00
parent 7868187aa9
commit ab2b60ea49

View file

@ -2798,7 +2798,7 @@ $tw.hooks.invokeHook = function(hookName /*, value,... */) {
$tw.preloadHooks.forEach(function(hook){
if(typeof hook !== "object" || typeof hook.name !== "string" || typeof hook.callback !== "function"){
console.warn("Invalid hook definition in $tw.preloadHooks", hook);
}else{
} else {
$tw.hooks.addHook(hook.name, hook.callback);
}
});