Commit 8c0c9300 authored by lain's avatar lain

formatting

parent ffd9ad1f
...@@ -134,9 +134,10 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do ...@@ -134,9 +134,10 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
} }
# no need to query DB if registration is open # no need to query DB if registration is open
token = unless @registrations_open || is_nil(tokenString) do token =
Repo.get_by(UserInviteToken, %{token: tokenString}) unless @registrations_open || is_nil(tokenString) do
end Repo.get_by(UserInviteToken, %{token: tokenString})
end
cond do cond do
@registrations_open || (!is_nil(token) && !token.used) -> @registrations_open || (!is_nil(token) && !token.used) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment