commit: 3d62c71edf8782c5ceae5a0ea3ba5ec08dc5b948
parent 59018d73c366d9297efe83d290c717d1a3e4756a
Author: Lain Soykaf <lain@lain.com>
Date: Sun, 12 Nov 2023 17:13:27 +0400
Credo fixes.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/pleroma/config/getting.ex b/lib/pleroma/config/getting.ex
@@ -9,7 +9,7 @@ defmodule Pleroma.Config.Getting do
def get(key), do: get(key, nil)
def get(key, default), do: impl().get(key, default)
- def impl() do
+ def impl do
Application.get_env(:pleroma, :config_impl, Pleroma.Config)
end
end
diff --git a/lib/pleroma/search/database_search.ex b/lib/pleroma/search/database_search.ex
@@ -4,11 +4,11 @@
defmodule Pleroma.Search.DatabaseSearch do
alias Pleroma.Activity
+ alias Pleroma.Config
alias Pleroma.Object.Fetcher
alias Pleroma.Pagination
alias Pleroma.User
alias Pleroma.Web.ActivityPub.Visibility
- alias Pleroma.Config
require Pleroma.Constants
diff --git a/test/pleroma/search/meilisearch_test.exs b/test/pleroma/search/meilisearch_test.exs
@@ -13,9 +13,9 @@ defmodule Pleroma.Search.MeilisearchTest do
import Mox
alias Pleroma.Search.Meilisearch
+ alias Pleroma.UnstubbedConfigMock, as: Config
alias Pleroma.Web.CommonAPI
alias Pleroma.Workers.SearchIndexingWorker
- alias Pleroma.UnstubbedConfigMock, as: Config
describe "meilisearch" do
test "indexes a local post on creation" do