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

Commit a1c6664

Browse files
committed
chore(clean up): unused warnings
1 parent 3a2b835 commit a1c6664

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

lib/mastani_server/billing/delegates/curd.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule MastaniServer.Billing.Delegate.CURD do
3333
def create_record(%User{id: user_id}, attrs) do
3434
with {:ok, user} <- ORM.find(User, user_id) do
3535
case ORM.find_by(BillRecord, user_id: user.id, state: "pending") do
36-
{:ok, record} ->
36+
{:ok, _record} ->
3737
{:error, [message: "you have pending bill", code: ecode(:exsit_pending_bill)]}
3838

3939
{:error, _} ->

lib/mastani_server/cms/delegates/article_curd.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ defmodule MastaniServer.CMS.Delegate.ArticleCURD do
366366
end
367367
end
368368

369-
defp should_add_pin?(filter), do: {:error, :pass}
369+
defp should_add_pin?(_filter), do: {:error, :pass}
370370

371371
defp concat_contents(pined_content, normal_contents) do
372372
case pined_content |> Map.get(:total_count) do

lib/mastani_server/statistics/delegates/status.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ defmodule MastaniServer.Statistics.Delegate.Status do
44
"""
55

66
import Ecto.Query, warn: false
7-
import Helper.Utils
87
import ShortMaps
98

109
# alias MastaniServer.Repo

test/mastani_server/cms/cms_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ defmodule MastaniServer.Test.CMS do
148148
# end
149149

150150
describe "[cms community thread]" do
151-
alias CMS.{Community, Thread}
151+
alias CMS.Community
152152

153153
test "can create thread to a community" do
154154
title = "post"

0 commit comments

Comments
 (0)