diff options
author | Christian Hesse <mail@eworm.de> | 2021-12-10 07:34:09 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-12-10 07:34:09 +0100 |
commit | 6dede0c49b94e5323106ce4bef475d36f1c018bd (patch) | |
tree | 8d93dc723a0bd0196014c1e0c3ccfa26b991ba6e /global-functions | |
parent | a46fd481874b2277b191faf35ae035febdc045d6 (diff) |
global-functions: $ScriptLock: simplify cleanup code
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/global-functions b/global-functions index 0e4c514..42d0b43 100644 --- a/global-functions +++ b/global-functions @@ -958,16 +958,13 @@ :global ScriptLockOrder; - :local Clean true; :foreach Ticket in=($ScriptLockOrder->$Script) do={ :if ([ :typeof $Ticket ] != "nothing") do={ - :set Clean false; + :return false; } } - :if ($Clean = true) do={ - :set ($ScriptLockOrder->$Script) [ :toarray "" ]; - } + :set ($ScriptLockOrder->$Script) [ :toarray "" ]; } :if ([ :len [ / system script find where name=$Script ] ] = 0) do={ |