Skip to content

Commit

Permalink
update: use & to replace anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
Maples7 committed Jun 15, 2019
1 parent 801ff47 commit c19d49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/field_mask.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ defmodule FieldMask do
[delimiter, Enum.join(chars) | acc]
end)
|> Enum.reverse()
|> Enum.filter(fn str -> str !== nil and str !== "" end)
|> Enum.filter(&(&1 !== nil and &1 !== ""))
end

@doc """
Expand Down

0 comments on commit c19d49f

Please sign in to comment.