little cleanup

This commit is contained in:
Alexander Strizhakov 2020-01-15 17:10:33 +03:00
commit 59ba5c80b9
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 26 additions and 25 deletions

View file

@ -17,7 +17,7 @@ defmodule Pleroma.Config.TransferTask do
end
def load_and_update_env do
with true <- Pleroma.Config.get([:configurable_from_database]),
with true <- Pleroma.Config.get(:configurable_from_database),
true <- Ecto.Adapters.SQL.table_exists?(Repo, "config"),
started_applications <- Application.started_applications() do
# We need to restart applications for loaded settings take effect

View file

@ -847,7 +847,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
end
defp configurable_from_database(conn) do
if Pleroma.Config.get([:configurable_from_database]) do
if Pleroma.Config.get(:configurable_from_database) do
:ok
else
errors(