Skip to content

Commit dab212e

Browse files
replace inefficient logic (#43708)
1 parent ad129a9 commit dab212e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPL.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function modules_to_be_loaded(ast::Expr, mods::Vector{Symbol} = Symbol[])
194194
end
195195
end
196196
for arg in ast.args
197-
if arg isa Expr && arg.head in [:block, :if, :using, :import]
197+
if isexpr(arg, (:block, :if, :using, :import))
198198
modules_to_be_loaded(arg, mods)
199199
end
200200
end

0 commit comments

Comments
 (0)