Skip to content

Commit aa9a329

Browse files
authored
Remove unused argument from private helper (#672)
1 parent 3084d71 commit aa9a329

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ecto/adapters/postgres/connection.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ if Code.ensure_loaded?(Postgrex) do
246246
quote_name(prefix, table),
247247
insert_as(on_conflict),
248248
values,
249-
on_conflict(on_conflict, header) | returning(returning)
249+
on_conflict(on_conflict) | returning(returning)
250250
]
251251
end
252252

@@ -259,16 +259,16 @@ if Code.ensure_loaded?(Postgrex) do
259259
[]
260260
end
261261

262-
defp on_conflict({:raise, _, []}, _header),
262+
defp on_conflict({:raise, _, []}),
263263
do: []
264264

265-
defp on_conflict({:nothing, _, targets}, _header),
265+
defp on_conflict({:nothing, _, targets}),
266266
do: [" ON CONFLICT ", conflict_target(targets) | "DO NOTHING"]
267267

268-
defp on_conflict({fields, _, targets}, _header) when is_list(fields),
268+
defp on_conflict({fields, _, targets}) when is_list(fields),
269269
do: [" ON CONFLICT ", conflict_target!(targets), "DO " | replace(fields)]
270270

271-
defp on_conflict({query, _, targets}, _header),
271+
defp on_conflict({query, _, targets}),
272272
do: [" ON CONFLICT ", conflict_target!(targets), "DO " | update_all(query, "UPDATE SET ")]
273273

274274
defp conflict_target!([]),

0 commit comments

Comments
 (0)