Skip to content

Commit

Permalink
Remove unnecessary clause in descr
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 21, 2025
1 parent a42f2e8 commit 0296997
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/elixir/lib/module/types/descr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1773,11 +1773,7 @@ defmodule Module.Types.Descr do
end

# Two maps are fusible if they differ in at most one element.
defp non_fusible_maps?({_, fields1, []}, {_, fields2, []})
when map_size(fields1) > map_size(fields2) do
not fusible_maps?(Map.to_list(fields2), fields1, 0)
end

# Given they are of the same size, the side you traverse is not important.
defp non_fusible_maps?({_, fields1, []}, {_, fields2, []}) do
not fusible_maps?(Map.to_list(fields1), fields2, 0)
end
Expand Down

0 comments on commit 0296997

Please sign in to comment.