Skip to content

Commit bfa894a

Browse files
wojtekmachJosé Valim
authored andcommitted
Fix local.hex --if-missing (#6576)
1 parent 407d2e1 commit bfa894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/tasks/local.hex.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule Mix.Tasks.Local.Hex do
3535

3636
should_install? =
3737
if Keyword.get(opts, :if_missing, false) do
38-
Code.ensure_loaded?(Hex)
38+
not Code.ensure_loaded?(Hex)
3939
else
4040
true
4141
end

0 commit comments

Comments
 (0)