Skip to content

Commit 8563e5b

Browse files
committed
restore formatting
1 parent 3f2a6ef commit 8563e5b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/ecto/repo/schema.ex

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -916,25 +916,15 @@ defmodule Ecto.Repo.Schema do
916916
to_remove = List.wrap(conflict_target)
917917
replace = replace_all_fields!(:replace_all, schema, to_remove)
918918

919-
if replace == [],
920-
do:
921-
raise(
922-
ArgumentError,
923-
"empty list of fields to update, use the `:replace` option instead"
924-
)
919+
if replace == [], do: raise(ArgumentError, "empty list of fields to update, use the `:replace` option instead")
925920

926921
{{replace, [], conflict_target}, []}
927922

928923
{:replace_all_except, fields} ->
929924
to_remove = List.wrap(conflict_target) ++ fields
930925
replace = replace_all_fields!(:replace_all_except, schema, to_remove)
931926

932-
if replace == [],
933-
do:
934-
raise(
935-
ArgumentError,
936-
"empty list of fields to update, use the `:replace` option instead"
937-
)
927+
if replace == [], do: raise(ArgumentError, "empty list of fields to update, use the `:replace` option instead")
938928

939929
{{replace, [], conflict_target}, []}
940930

0 commit comments

Comments
 (0)