Skip to content

Commit a80cc42

Browse files
xal-0c42f
andauthored
Apply suggestions from code review for #87 (#117)
Co-authored-by: Claire Foster <[email protected]>
1 parent cb6bf1c commit a80cc42

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/closure_conversion.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,10 @@ function make_globaldecl(ctx, src_ex, mod, name, strong=false, type=nothing; ret
130130
[K"call"
131131
"declare_global"::K"core"
132132
mod::K"Value" name::K"Symbol" strong::K"Bool"
133-
if type !== nothing
134-
type
135-
end
133+
type
136134
]
137135
[K"latestworld"]
138-
@ast ctx src_ex [K"removable" "nothing"::K"core"]
136+
"nothing"::K"core"
139137
]
140138
if ctx.is_toplevel_seq_point
141139
return decl
@@ -146,7 +144,7 @@ function make_globaldecl(ctx, src_ex, mod, name, strong=false, type=nothing; ret
146144
if ret_nothing
147145
nothing
148146
else
149-
@ast ctx src_ex [K"removable" "nothing"::K"core"]
147+
@ast ctx src_ex "nothing"::K"core"
150148
end
151149
end
152150

0 commit comments

Comments
 (0)