Skip to content

Commit 0296997

Browse files
committed
Remove unnecessary clause in descr
1 parent a42f2e8 commit 0296997

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/elixir/lib/module/types/descr.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,11 +1773,7 @@ defmodule Module.Types.Descr do
17731773
end
17741774

17751775
# Two maps are fusible if they differ in at most one element.
1776-
defp non_fusible_maps?({_, fields1, []}, {_, fields2, []})
1777-
when map_size(fields1) > map_size(fields2) do
1778-
not fusible_maps?(Map.to_list(fields2), fields1, 0)
1779-
end
1780-
1776+
# Given they are of the same size, the side you traverse is not important.
17811777
defp non_fusible_maps?({_, fields1, []}, {_, fields2, []}) do
17821778
not fusible_maps?(Map.to_list(fields1), fields2, 0)
17831779
end

0 commit comments

Comments
 (0)