Skip to content

Commit

Permalink
Merge pull request #54 from epatters/union-deprecated
Browse files Browse the repository at this point in the history
Fix deprecated use of union() on arrays
  • Loading branch information
kmsquire authored Dec 7, 2018
2 parents 9a0e042 + 0220828 commit 98f305c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matchutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getvars(e::Expr)
getvars(e.args)
end
end
getvars(es::AbstractArray) = union([getvars(e) for e in es]...)
getvars(es::AbstractArray) = unique!(vcat([getvars(e) for e in es]...))

#
# getvar
Expand Down

0 comments on commit 98f305c

Please sign in to comment.