Skip to content

Commit 8d02c19

Browse files
committed
Remove dead code found by the type system
1 parent 3be4e60 commit 8d02c19

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/ecto/repo/schema.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,6 @@ defmodule Ecto.Repo.Schema do
968968
Enum.map(updatable_fields -- to_remove, &field_source!(schema, &1))
969969
end
970970

971-
defp field_source!(nil, field) do
972-
field
973-
end
974-
975971
defp field_source!(schema, field) do
976972
schema.__schema__(:field_source, field) ||
977973
raise ArgumentError, "unknown field for :on_conflict, got: #{inspect(field)}"

0 commit comments

Comments
 (0)