Skip to content

Commit b06d82c

Browse files
author
José Valim
committed
Allow all args on Mix.Dep.loaded
Even though the API was private, developers were abusing it. So we allow it to work for now until we remove it in future versions. Signed-off-by: José Valim <[email protected]>
1 parent 3dbe8a6 commit b06d82c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/dep.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ defmodule Mix.Dep do
153153
# TODO: Remove this on v1.8
154154
@doc false
155155
@deprecated "Mix.Dep.loaded/1 was private API and you should not use it"
156-
def loaded([]) do
157-
load_on_environment([])
156+
def loaded(opts) do
157+
load_on_environment(opts)
158158
end
159159

160160
@doc """

0 commit comments

Comments
 (0)