aboutsummaryrefslogtreecommitdiff
path: root/lib/mix/tasks
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-02-25 18:56:37 +0000
committerrinpatch <rinpatch@sdf.org>2020-02-25 18:56:37 +0000
commit8b4d1a0b2917ac5146e6a37e062cda5ae968ea28 (patch)
tree6550dca7e5a042db4f2dbdf8088b762bf2775c01 /lib/mix/tasks
parent2cd253f6d5a82b2ceba6f135bfc2094c7881342d (diff)
parent22018adae67ae0b2047a410dc1f5cf9463ade3dc (diff)
downloadpleroma-8b4d1a0b2917ac5146e6a37e062cda5ae968ea28.tar.gz
Merge branch 'fix/dialyzer-warnings' into 'develop'
Fix Dialyzer warnings See merge request pleroma/pleroma!2242
Diffstat (limited to 'lib/mix/tasks')
-rw-r--r--lib/mix/tasks/pleroma/emoji.ex6
-rw-r--r--lib/mix/tasks/pleroma/user.ex3
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/mix/tasks/pleroma/emoji.ex b/lib/mix/tasks/pleroma/emoji.ex
index 24d999707..74bf968fc 100644
--- a/lib/mix/tasks/pleroma/emoji.ex
+++ b/lib/mix/tasks/pleroma/emoji.ex
@@ -186,11 +186,7 @@ defmodule Mix.Tasks.Pleroma.Emoji do
tmp_pack_dir = Path.join(System.tmp_dir!(), "emoji-pack-#{name}")
- {:ok, _} =
- :zip.unzip(
- binary_archive,
- cwd: tmp_pack_dir
- )
+ {:ok, _} = :zip.unzip(binary_archive, cwd: String.to_charlist(tmp_pack_dir))
emoji_map = Pleroma.Emoji.Loader.make_shortcode_to_file_map(tmp_pack_dir, exts)
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex
index 85c9e4954..ba10a705a 100644
--- a/lib/mix/tasks/pleroma/user.ex
+++ b/lib/mix/tasks/pleroma/user.ex
@@ -100,8 +100,7 @@ defmodule Mix.Tasks.Pleroma.User do
User.perform(:delete, user)
shell_info("User #{nickname} deleted.")
else
- _ ->
- shell_error("No local user #{nickname}")
+ _ -> shell_error("No local user #{nickname}")
end
end