aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-12-10 07:34:09 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-12-10 07:34:09 +0100
commit6dede0c49b94e5323106ce4bef475d36f1c018bd (patch)
tree8d93dc723a0bd0196014c1e0c3ccfa26b991ba6e
parenta46fd481874b2277b191faf35ae035febdc045d6 (diff)
global-functions: $ScriptLock: simplify cleanup code
-rw-r--r--global-functions7
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={