From 8c0c93004127f58d1d4f8b3458de66830c30ad29 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 12 Aug 2018 19:42:21 +0200 Subject: [PATCH] formatting --- lib/pleroma/web/twitter_api/twitter_api.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -> -- 2.45.2