Skip to content

Commit

Permalink
Fix phx.routes mix task to consider other annotations (#5606)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinocosta authored Oct 24, 2023
1 parent e4279c7 commit 3fd5984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix/tasks/phx.routes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ defmodule Mix.Tasks.Phx.Routes do
end)

case function_infos do
{_, line, _, _, _} -> line
{_, anno, _, _, _} -> :erl_anno.line(anno)
nil -> nil
end
end
Expand Down

0 comments on commit 3fd5984

Please sign in to comment.