Better variable name
authorMaxim Filippov <colixer@gmail.com>
Tue, 1 Jan 2019 20:29:47 +0000 (23:29 +0300)
committerMaxim Filippov <colixer@gmail.com>
Tue, 1 Jan 2019 20:29:47 +0000 (23:29 +0300)
lib/pleroma/web/rich_media/parsers/ogp.ex

index 75084c7eeceb09ef4745d363cf5b617f867a721c..5773a52632f476ec328996c525102d16ed03189a 100644 (file)
@@ -17,8 +17,8 @@ defmodule Pleroma.Web.RichMedia.Parsers.OGP do
     html |> Floki.find("meta[property^='og:']")
   end
 
-  defp normalize_attributes(tuple) do
-    {_tag, attributes, _children} = tuple
+  defp normalize_attributes(html_node) do
+    {_tag, attributes, _children} = html_node
 
     data =
       Enum.into(attributes, %{}, fn {name, value} ->