diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-03-05 04:18:43 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-03-13 04:26:56 +0100 |
commit | fb82f6fc7c5453e34e619c54a88e64e99deb58b4 (patch) | |
tree | bae82a47b6b477288e63e509f15bd2568835065c /lib/pleroma/captcha | |
parent | a3a9cec4835738216800d2cebd295fb8dbf10f34 (diff) | |
download | pleroma-fb82f6fc7c5453e34e619c54a88e64e99deb58b4.tar.gz |
[Credo] Remove parentesis on argument-less functions
Diffstat (limited to 'lib/pleroma/captcha')
-rw-r--r-- | lib/pleroma/captcha/captcha.ex | 4 | ||||
-rw-r--r-- | lib/pleroma/captcha/kocaptcha.ex | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/captcha/captcha.ex b/lib/pleroma/captcha/captcha.ex index aa41acd1a..cecb5b5a7 100644 --- a/lib/pleroma/captcha/captcha.ex +++ b/lib/pleroma/captcha/captcha.ex @@ -10,7 +10,7 @@ defmodule Pleroma.Captcha do use GenServer @doc false - def start_link() do + def start_link do GenServer.start_link(__MODULE__, [], name: __MODULE__) end @@ -22,7 +22,7 @@ defmodule Pleroma.Captcha do @doc """ Ask the configured captcha service for a new captcha """ - def new() do + def new do GenServer.call(__MODULE__, :new) end diff --git a/lib/pleroma/captcha/kocaptcha.ex b/lib/pleroma/captcha/kocaptcha.ex index 34a611492..61688e778 100644 --- a/lib/pleroma/captcha/kocaptcha.ex +++ b/lib/pleroma/captcha/kocaptcha.ex @@ -7,7 +7,7 @@ defmodule Pleroma.Captcha.Kocaptcha do @behaviour Service @impl Service - def new() do + def new do endpoint = Pleroma.Config.get!([__MODULE__, :endpoint]) case Tesla.get(endpoint <> "/new") do |