Skip to content

Commit b42e9ab

Browse files
Merge pull request #1517 from FarmBot/staging
v15.4.10
2 parents ebe7a24 + d0c0441 commit b42e9ab

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# 15.4.10
4+
5+
* Prevent unnecessary scheduler exit upon encountering duplicate variables when one is a placeholder.
6+
37
# 15.4.9
48

59
* Add `tool.flow_rate_ml_per_s`.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.4.9
1+
15.4.10

lib/celery/compilers/scope.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ defmodule FarmbotOS.Celery.Compiler.Scope do
3737
if has_key?(state, key) do
3838
state
3939
else
40-
set(state, key, value)
40+
reckless_set(state, key, value)
4141
end
4242
end)
4343
end
4444

4545
def has_key?(scope, label), do: Map.has_key?(scope.declarations, label)
4646

47+
def reckless_set(scope, key, value) do
48+
%{scope | declarations: Map.put(scope.declarations, key, value)}
49+
end
50+
4751
@nothing %AST{kind: :nothing, args: %{}, body: []}
4852
@not_allowed [
4953
:location_placeholder,
@@ -65,7 +69,7 @@ defmodule FarmbotOS.Celery.Compiler.Scope do
6569
declr = Map.put(scope.declarations, key, @nothing)
6670
%{scope | declarations: declr, valid: false}
6771
else
68-
%{scope | declarations: Map.put(scope.declarations, key, value)}
72+
reckless_set(scope, key, value)
6973
end
7074
end
7175

0 commit comments

Comments
 (0)