write better code
This commit is contained in:
parent
0390e0b77c
commit
1af6145941
@ -23,12 +23,7 @@ defmodule Pleroma.Config.DeprecationWarnings do
|
|||||||
def check_simple_policy_tuples do
|
def check_simple_policy_tuples do
|
||||||
has_strings =
|
has_strings =
|
||||||
Config.get([:mrf_simple])
|
Config.get([:mrf_simple])
|
||||||
|> Enum.map(fn
|
|> Enum.any?(fn {_, v} -> Enum.any?(v, fn e -> is_binary(e) end) end)
|
||||||
{_, []} -> {}
|
|
||||||
{_, v} -> Enum.max(v)
|
|
||||||
end)
|
|
||||||
|> Enum.max()
|
|
||||||
|> is_binary
|
|
||||||
|
|
||||||
if has_strings do
|
if has_strings do
|
||||||
Logger.warn("""
|
Logger.warn("""
|
||||||
|
Loading…
Reference in New Issue
Block a user