From ffd9ad1f0ca745ac592f7ed763aa2250ff84ff08 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 12 Aug 2018 18:41:33 +0200 Subject: [PATCH] Fix for elixir 1.7. --- lib/pleroma/web/twitter_api/twitter_api.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 9d8815ce7..3bc2f350f 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -134,8 +134,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do } # no need to query DB if registration is open - unless @registrations_open || is_nil(tokenString) do - token = Repo.get_by(UserInviteToken, %{token: tokenString}) + token = unless @registrations_open || is_nil(tokenString) do + Repo.get_by(UserInviteToken, %{token: tokenString}) end cond do -- 2.45.2