Fix a bunch of unused variable warnings
This commit is contained in:
parent
11a1241d41
commit
ab4aa5720a
10 changed files with 19 additions and 19 deletions
|
|
@ -26,7 +26,7 @@ defmodule Pleroma.Builders.ActivityBuilder do
|
|||
end
|
||||
|
||||
def insert_list(times, data \\ %{}, opts \\ %{}) do
|
||||
Enum.map(1..times, fn n ->
|
||||
Enum.map(1..times, fn _n ->
|
||||
{:ok, activity} = insert(data, opts)
|
||||
activity
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -367,7 +367,7 @@ defmodule HTTPoisonMock do
|
|||
|
||||
def post(
|
||||
"https://social.heldscal.la/main/push/hub",
|
||||
{:form, data},
|
||||
{:form, _data},
|
||||
"Content-type": "application/x-www-form-urlencoded"
|
||||
) do
|
||||
{:ok,
|
||||
|
|
@ -711,11 +711,11 @@ defmodule HTTPoisonMock do
|
|||
}"}
|
||||
end
|
||||
|
||||
def post(url, body, headers) do
|
||||
def post(url, _body, _headers) do
|
||||
{:error, "Not implemented the mock response for post #{inspect(url)}"}
|
||||
end
|
||||
|
||||
def post(url, body, headers, options) do
|
||||
def post(url, _body, _headers, _options) do
|
||||
{:error, "Not implemented the mock response for post #{inspect(url)}"}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue