lint
This commit is contained in:
parent
1743a837dd
commit
f44774d387
2 changed files with 12 additions and 3 deletions
|
|
@ -400,8 +400,17 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
|
||||||
Application.put_env(:logger, :backends, [:console])
|
Application.put_env(:logger, :backends, [:console])
|
||||||
|
|
||||||
on_exit(fn ->
|
on_exit(fn ->
|
||||||
if initial_console, do: Application.put_env(:logger, :console, initial_console), else: Application.delete_env(:logger, :console)
|
if initial_console do
|
||||||
if initial_backends, do: Application.put_env(:logger, :backends, initial_backends), else: Application.delete_env(:logger, :backends)
|
Application.put_env(:logger, :console, initial_console)
|
||||||
|
else
|
||||||
|
Application.delete_env(:logger, :console)
|
||||||
|
end
|
||||||
|
|
||||||
|
if initial_backends do
|
||||||
|
Application.put_env(:logger, :backends, initial_backends)
|
||||||
|
else
|
||||||
|
Application.delete_env(:logger, :backends)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ defmodule Pleroma.Web.ActivityPub.MRFTest do
|
||||||
|
|
||||||
alias Pleroma.Web.ActivityPub.MRF
|
alias Pleroma.Web.ActivityPub.MRF
|
||||||
|
|
||||||
defp regexes_match!([],[]), do: true
|
defp regexes_match!([], []), do: true
|
||||||
|
|
||||||
defp regexes_match!([authority | authority_rest], [checked | checked_rest]) do
|
defp regexes_match!([authority | authority_rest], [checked | checked_rest]) do
|
||||||
authority.source == checked.source and regexes_match!(authority_rest, checked_rest)
|
authority.source == checked.source and regexes_match!(authority_rest, checked_rest)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue