commit: 7955cd90e6761476fb4a68789aca0c3a4955bbfa
parent fd62969dc49e7e7be9a87813296232e8506d2c56
Author: Mark Felder <feld@feld.me>
Date: Mon, 1 Jul 2024 11:19:15 -0400
Dialyzer: The guard clause can never succeed.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/pleroma/application_requirements.ex b/lib/pleroma/application_requirements.ex
@@ -241,10 +241,9 @@ defmodule Pleroma.ApplicationRequirements do
missing_mrfs =
Enum.reduce(mrfs, [], fn x, acc ->
- if Code.ensure_compiled(x) do
- acc
- else
- acc ++ [x]
+ case Code.ensure_compiled(x) do
+ {:module, _} -> acc
+ {:error, _} -> acc ++ [x]
end
end)