Skip to content

Commit 8cba20c

Browse files
michallepickijosevalim
authored andcommitted
Clean up unreachable clause of Types.Descr.atom_only? helper (#14647)
it's being always called with a map
1 parent b7e0d65 commit 8cba20c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,6 @@ defmodule Module.Types.Descr do
972972
end
973973
end
974974

975-
defp atom_only?(:term), do: false
976975
defp atom_only?(descr), do: empty?(Map.delete(descr, :atom))
977976
defp atom_new(as) when is_list(as), do: {:union, :sets.from_list(as, version: 2)}
978977

0 commit comments

Comments
 (0)