Tidy up CSimpleCallChainer::PostScriptExecute()

This commit is contained in:
samisalreadytaken 2024-02-02 17:06:12 +03:00
parent a6f9d0a0e2
commit f1123ed1e7

View File

@ -118,16 +118,15 @@ class CSimpleCallChainer
function PostScriptExecute() function PostScriptExecute()
{ {
local func; if ( prefix in scope )
try { {
func = scope[prefix]; local func = scope[prefix];
} catch(e) { if ( typeof func == "function" )
return; {
}
if (typeof(func) != "function")
return;
chain.push(func); chain.push(func);
} }
}
}
function Call() function Call()
{ {