From 029699735d8b3331316dd7362c5b3cfffe6f2602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 21 Jan 2025 08:07:27 +0100 Subject: [PATCH] Remove unnecessary clause in descr --- lib/elixir/lib/module/types/descr.ex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/elixir/lib/module/types/descr.ex b/lib/elixir/lib/module/types/descr.ex index 39488079517..adc17fa9e32 100644 --- a/lib/elixir/lib/module/types/descr.ex +++ b/lib/elixir/lib/module/types/descr.ex @@ -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