Formatting
authorEkaterina Vaartis <vaartis@cock.li>
Sun, 21 Apr 2019 19:33:54 +0000 (22:33 +0300)
committerEkaterina Vaartis <vaartis@cock.li>
Sun, 21 Apr 2019 19:33:54 +0000 (22:33 +0300)
lib/pleroma/emoji.ex

index 6f9bd3eda7d9c77005071a4a18677c2bdc9dcaf0..071c7f6cdb141a737b3199e8b4b208e245a1ede9 100644 (file)
@@ -132,12 +132,12 @@ defmodule Pleroma.Emoji do
         "No emoji.txt found for pack \"#{pack_name}\", assuming all .png files are emoji"
       )
 
-      make_shortcode_to_file_map(pack_dir, [".png"]) |>
-        Enum.map(fn {shortcode, rel_file} ->
-          filename = Path.join("/emoji/#{pack_name}", rel_file)
+      make_shortcode_to_file_map(pack_dir, [".png"])
+      |> Enum.map(fn {shortcode, rel_file} ->
+        filename = Path.join("/emoji/#{pack_name}", rel_file)
 
-          {shortcode, filename, [to_string(match_extra(@groups, filename))]}
-        end)
+        {shortcode, filename, [to_string(match_extra(@groups, filename))]}
+      end)
     end
   end