File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,8 @@ macro convert(args...)
53
53
type1_string = replace (string (type1_symbol), " ." => " _" )
54
54
type2_string = replace (string (type2_symbol), " ." => " _" )
55
55
type1_isenum_and_type2_equaldatatype_or_isaunionall =
56
- (eval (type1_symbol) <: Enum ) && (
57
- (eval (type2_symbol) == DataType) ||
58
- (eval (type2_symbol) isa UnionAll)
59
- )
56
+ (eval (type1_symbol) <: Enum ) &&
57
+ ((eval (type2_symbol) == DataType) || (eval (type2_symbol) isa UnionAll))
60
58
type1 = esc (type1_symbol)
61
59
type2 = esc (type2_symbol)
62
60
fwd_map = Expr[Expr (:tuple , esc .(a. args)... ) for a in args[2 : end ]]
@@ -86,7 +84,8 @@ macro convert(args...)
86
84
# Reverse conversion
87
85
if type1_isenum_and_type2_equaldatatype_or_isaunionall
88
86
for stypes in rev_to_enum_map
89
- eval (type2_symbol) isa UnionAll && @assert eval (stypes[1 ]. args[1 ]) <: eval (type2_symbol)
87
+ eval (type2_symbol) isa UnionAll &&
88
+ @assert eval (stypes[1 ]. args[1 ]) <: eval (type2_symbol)
90
89
push! (
91
90
result_expr. args,
92
91
:(
You can’t perform that action at this time.
0 commit comments