Skip to content

Commit 33b8f34

Browse files
authored
Use map_intersperse (#586)
1 parent ec8ea63 commit 33b8f34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/adapters/postgres/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ if Code.ensure_loaded?(Postgrex) do
15611561
defp default_type(list, {:array, inner} = type) when is_list(list) do
15621562
[
15631563
"ARRAY[",
1564-
Enum.map(list, &default_type(&1, inner)) |> Enum.intersperse(?,),
1564+
Enum.map_intersperse(list, ?,, &default_type(&1, inner)),
15651565
"]::",
15661566
ecto_to_db(type)
15671567
]

0 commit comments

Comments
 (0)