From: lain Date: Sun, 12 Aug 2018 17:42:21 +0000 (+0200) Subject: formatting X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8c0c93004127f58d1d4f8b3458de66830c30ad29;p=akkoma formatting --- diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 3bc2f350f..dbad08e66 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -134,9 +134,10 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do } # no need to query DB if registration is open - token = unless @registrations_open || is_nil(tokenString) do - Repo.get_by(UserInviteToken, %{token: tokenString}) - end + token = + unless @registrations_open || is_nil(tokenString) do + Repo.get_by(UserInviteToken, %{token: tokenString}) + end cond do @registrations_open || (!is_nil(token) && !token.used) ->