aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-12-21 12:03:58 +0100
committerlain <lain@soykaf.club>2020-12-21 12:03:58 +0100
commitc9d73af74dc816dac484f1be2e842baac6fdaa6c (patch)
tree874e4b503603489b52e5e36244c261ee3efd5c2c /lib/pleroma/web/mastodon_api
parentee81a94ab2631e994f7d963d74fadf1ce0704837 (diff)
downloadpleroma-c9d73af74dc816dac484f1be2e842baac6fdaa6c.tar.gz
Cachex: Unify arity of callback function
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/poll_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/poll_controller.ex b/lib/pleroma/web/mastodon_api/controllers/poll_controller.ex
index 42f263c8c..e26ec7136 100644
--- a/lib/pleroma/web/mastodon_api/controllers/poll_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/poll_controller.ex
@@ -57,7 +57,7 @@ defmodule Pleroma.Web.MastodonAPI.PollController do
defp get_cached_vote_or_vote(user, object, choices) do
idempotency_key = "polls:#{user.id}:#{object.data["id"]}"
- @cachex.fetch!(:idempotency_cache, idempotency_key, fn ->
+ @cachex.fetch!(:idempotency_cache, idempotency_key, fn _ ->
case CommonAPI.vote(user, object, choices) do
{:error, _message} = res -> {:ignore, res}
res -> {:commit, res}