Skip to content

Commit

Permalink
Do not silently ignore incorrect mix hex.outdated --sort BY
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Apr 10, 2024
1 parent df071f0 commit f4e76b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mix/tasks/hex.outdated.ex
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ defmodule Mix.Tasks.Hex.Outdated do
end)
end

defp maybe_sort_by(values, _), do: values
defp maybe_sort_by(values, nil) do
values
end

defp get_versions(dep_names, deps, lock, pre?) do
Enum.flat_map(dep_names, fn name ->
Expand Down

0 comments on commit f4e76b6

Please sign in to comment.