Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 3661262

Browse files
committed
chore: remove warning
1 parent fc17d57 commit 3661262

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/groupher_server/cms/delegates/hooks/cite.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ defmodule GroupherServer.CMS.Delegate.Hooks.Cite do
6666
end
6767
end
6868

69-
def handle(%{document: document} = article) do
69+
def handle(%{document: _document} = article) do
7070
body = Repo.preload(article, :document) |> get_in([:document, :body])
7171
article = article |> Map.put(:body, body)
7272
handle(article)

lib/groupher_server/cms/delegates/hooks/mention.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GroupherServer.CMS.Delegate.Hooks.Mention do
2727
end
2828
end
2929

30-
def handle(%{document: document} = article) do
30+
def handle(%{document: _document} = article) do
3131
body = Repo.preload(article, :document) |> get_in([:document, :body])
3232
article = article |> Map.put(:body, body)
3333
handle(article)

0 commit comments

Comments
 (0)