diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-06-26 19:19:07 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-06-26 19:19:07 +0700 |
commit | 159630b21cba565e02716e06e9d4f8ad1bf5dab5 (patch) | |
tree | abfcf171b27553984eea4bb32b1b25cc69da8da2 | |
parent | 0b8aeac0f3ff560442f412301acb581c2ef1684b (diff) | |
download | pleroma-159630b21cba565e02716e06e9d4f8ad1bf5dab5.tar.gz |
Fix credo warning
-rw-r--r-- | lib/pleroma/plugs/idempotency_plug.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/plugs/idempotency_plug.ex b/lib/pleroma/plugs/idempotency_plug.ex index 442573d60..7c06be9ea 100644 --- a/lib/pleroma/plugs/idempotency_plug.ex +++ b/lib/pleroma/plugs/idempotency_plug.ex @@ -11,7 +11,9 @@ defmodule Pleroma.Plugs.IdempotencyPlug do @impl true def init(opts), do: opts - # Sending idempotency keys in `GET` and `DELETE` requests has no effect and should be avoided, as these requests are idempotent by definition. + # Sending idempotency keys in `GET` and `DELETE` requests has no effect + # and should be avoided, as these requests are idempotent by definition. + @impl true def call(%{method: method} = conn, _) when method in ["POST", "PUT", "PATCH"] do case get_req_header(conn, "idempotency-key") do |