Fix credo warnings
This commit is contained in:
parent
87057101b0
commit
f6d4acc871
|
@ -532,7 +532,8 @@ def import_from_fs(conn, _params) do
|
|||
|> Enum.map(&String.trim/1)
|
||||
|> Enum.map(fn line ->
|
||||
case String.split(line, ~r/,\s*/) do
|
||||
# This matches both strings with and without tags and we don't care about tags here
|
||||
# This matches both strings with and without tags
|
||||
# and we don't care about tags here
|
||||
[name, file | _] ->
|
||||
{name, file}
|
||||
|
||||
|
@ -543,8 +544,8 @@ def import_from_fs(conn, _params) do
|
|||
|> Enum.filter(fn x -> not is_nil(x) end)
|
||||
|> Enum.into(%{})
|
||||
else
|
||||
# If there's no emoji.txt, assume all files that are of certain extensions from the config
|
||||
# are emojis and import them all
|
||||
# If there's no emoji.txt, assume all files
|
||||
# that are of certain extensions from the config are emojis and import them all
|
||||
Pleroma.Emoji.make_shortcode_to_file_map(
|
||||
dir_path,
|
||||
Pleroma.Config.get!([:emoji, :pack_extensions])
|
||||
|
|
Loading…
Reference in New Issue