mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
Dialyzer: The guard clause can never succeed.
This commit is contained in:
parent
fd62969dc4
commit
7955cd90e6
1 changed files with 3 additions and 4 deletions
|
@ -241,10 +241,9 @@ defmodule Pleroma.ApplicationRequirements do
|
||||||
|
|
||||||
missing_mrfs =
|
missing_mrfs =
|
||||||
Enum.reduce(mrfs, [], fn x, acc ->
|
Enum.reduce(mrfs, [], fn x, acc ->
|
||||||
if Code.ensure_compiled(x) do
|
case Code.ensure_compiled(x) do
|
||||||
acc
|
{:module, _} -> acc
|
||||||
else
|
{:error, _} -> acc ++ [x]
|
||||||
acc ++ [x]
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue