Skip to content

Commit ca861a4

Browse files
committed
Prettify code
1 parent febc9e5 commit ca861a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model_macro.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct walk_until_occurrence{E}
1919
end
2020

2121
not_enter_indexed_walk = guarded_walk((x) -> (x isa Expr && x.head == :ref) || (x isa Expr && x.head == :call && x.args[1] == :new))
22-
not_created_by = guarded_walk((x) -> (x isa Expr && length(x.args) > 0 && x.args[1] == :created_by))
22+
not_created_by = guarded_walk((x) -> (x isa Expr && !isempty(x.args) && x.args[1] == :created_by))
2323

2424
function (w::walk_until_occurrence{E})(f, x) where {E <: Tuple}
2525
return walk(x, z -> any(pattern -> @capture(x, $(pattern)), w.patterns) ? z : w(f, z), f)

0 commit comments

Comments
 (0)