From 3759b146c4332f4026370fd1292085fbbb92d536 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Fri, 28 Feb 2020 13:33:42 +0000 Subject: [PATCH] Apply suggestion to lib/pleroma/plugs/rate_limiter/rate_limiter.ex --- lib/pleroma/plugs/rate_limiter/rate_limiter.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/plugs/rate_limiter/rate_limiter.ex b/lib/pleroma/plugs/rate_limiter/rate_limiter.ex index d2067060d..3a27d6eb7 100644 --- a/lib/pleroma/plugs/rate_limiter/rate_limiter.ex +++ b/lib/pleroma/plugs/rate_limiter/rate_limiter.ex @@ -144,7 +144,7 @@ defmodule Pleroma.Plugs.RateLimiter do end def action_settings(plug_opts) do - with limiter_name when not is_nil(limiter_name) <- plug_opts[:name], + with limiter_name when is_atom(limiter_name) <- plug_opts[:name], limits when not is_nil(limits) <- Config.get([:rate_limit, limiter_name]) do bucket_name_root = Keyword.get(plug_opts, :bucket_name, limiter_name) -- 2.45.2