Fix build_application/1 match

This commit is contained in:
Mark Felder 2021-03-02 11:37:37 -06:00
parent b1e1db82bc
commit 85b2387f66

View file

@ -536,6 +536,8 @@ defp build_emoji_map(emoji, users, current_user) do
end
@spec build_application(map() | nil) :: map() | nil
defp build_application(%{type: _type, name: name, url: url}), do: %{name: name, website: url}
defp build_application(%{"type" => _type, "name" => name, "url" => url}),
do: %{name: name, website: url}
defp build_application(_), do: nil
end