Skip to content

Commit 782a965

Browse files
authored
Update src/sugar.jl
1 parent 19aedfd commit 782a965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sugar.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ foldtree(op, init, ex::Expr) =
141141

142142
need_dynamic_optic(ex) =
143143
foldtree(false, ex) do yes, x
144-
yes || x === :end || x === :begin || x == Expr(:end) || x == Expr(:begin) || x === :_
144+
yes || x (:end, :begin, Expr(:end), Expr(:begin), :_)
145145
end
146146

147147
replace_underscore(ex, to) = postwalk(x -> x === :_ ? to : x, ex)

0 commit comments

Comments
 (0)