Skip to content

Commit

Permalink
replace inefficient logic (#43708)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jan 8, 2022
1 parent ad129a9 commit dab212e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function modules_to_be_loaded(ast::Expr, mods::Vector{Symbol} = Symbol[])
end
end
for arg in ast.args
if arg isa Expr && arg.head in [:block, :if, :using, :import]
if isexpr(arg, (:block, :if, :using, :import))
modules_to_be_loaded(arg, mods)
end
end
Expand Down

0 comments on commit dab212e

Please sign in to comment.