diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-03 18:44:18 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-02-09 14:59:20 +0100 |
commit | 8bcfac93a8586c12661427187ba8147dacc28c5b (patch) | |
tree | 7636e7bb20bbd22618a82ba5394c27c9a6864c8e /lib/mix | |
parent | c5f8df08a724763398e2962a2ef378a4f00067a3 (diff) | |
download | pleroma-8bcfac93a8586c12661427187ba8147dacc28c5b.tar.gz |
Make credo happy
Diffstat (limited to 'lib/mix')
-rw-r--r-- | lib/mix/tasks/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index ffc45fd03..5da3edfd2 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -211,7 +211,7 @@ defmodule Mix.Tasks.Pleroma.User do user = Repo.get(User, user.id) - if length(user.following) == 0 do + if Enum.empty?(user.following) do Mix.shell().info("Successfully unsubscribed all followers from #{user.nickname}") end else |