Update issue template
parent
64e109f82f
commit
7e9a367de6
|
@ -3,3 +3,7 @@
|
||||||
# Actual Behavior
|
# Actual Behavior
|
||||||
|
|
||||||
# Steps to Reproduce
|
# Steps to Reproduce
|
||||||
|
|
||||||
|
# My FarmBot API Version
|
||||||
|
|
||||||
|
Run `git log -1` and paste the results here
|
||||||
|
|
|
@ -68,8 +68,7 @@ module CeleryScript
|
||||||
out = { kind: node.kind, args: recurse_into_args(node) }
|
out = { kind: node.kind, args: recurse_into_args(node) }
|
||||||
body = get_body_elements(node)
|
body = get_body_elements(node)
|
||||||
if body.empty?
|
if body.empty?
|
||||||
# Legacy sequences *must* have body on sequence.
|
# Legacy sequences *must* have body on sequence. Others are fine.
|
||||||
# Others are fine.
|
|
||||||
out[:body] = [] if node.kind == "sequence"
|
out[:body] = [] if node.kind == "sequence"
|
||||||
else
|
else
|
||||||
out[:body] = body.map { |x| recurse_into_node(x) }
|
out[:body] = body.map { |x| recurse_into_node(x) }
|
||||||
|
@ -114,4 +113,4 @@ module CeleryScript
|
||||||
return HashWithIndifferentAccess.new(canonical_form)
|
return HashWithIndifferentAccess.new(canonical_form)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue