Skip to content

Commit

Permalink
rm empty! on install_packages_hooks (#3934)
Browse files Browse the repository at this point in the history
* rm empty! on install_packages_hooks

* check if in already
  • Loading branch information
IanButterworth authored and KristofferC committed Jul 5, 2024
1 parent 6e3c08a commit 2c33e50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/REPLExt/REPLExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ function __init__()
end
end
end
push!(empty!(REPL.install_packages_hooks), try_prompt_pkg_add)
if !in(try_prompt_pkg_add, REPL.install_packages_hooks)
push!(REPL.install_packages_hooks, try_prompt_pkg_add)
end
end

include("precompile.jl")
Expand Down

0 comments on commit 2c33e50

Please sign in to comment.