Skip to content
Permalink
Browse files

update: use pattern matching to extra tuple times

  • Loading branch information
Maples7 committed Jun 15, 2019
1 parent 3984931 commit 801ff47c93f4b682bbd2f2997ee23ea7e98b6b6c
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/field_mask.ex
@@ -184,8 +184,7 @@ defmodule FieldMask do
end
)
|> Enum.reduce([], fn item, acc ->
chars = elem(item, 0)
delimiter = elem(item, 1)
{chars, delimiter} = item
[delimiter, Enum.join(chars) | acc]
end)
|> Enum.reverse()

0 comments on commit 801ff47

Please sign in to comment.
You can’t perform that action at this time.