[Credo] Remove parentesis on argument-less functions

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-03-05 04:18:43 +01:00
commit fb82f6fc7c
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
19 changed files with 40 additions and 40 deletions

View file

@ -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

View file

@ -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