diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-04-06 20:47:05 +0700 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-06 20:47:05 +0700 |
commit | a53d591ac5bc8f19965f1edc71836e42bab3e393 (patch) | |
tree | 4a7e41bbf2bee0575e7b9e2f6ee0637e54b85e2c /lib | |
parent | dcc54f8cfab2c3d278ea3f3eb54d866c8436703a (diff) | |
download | pleroma-a53d591ac5bc8f19965f1edc71836e42bab3e393.tar.gz |
code style
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/twitter_api/twitter_api.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 402fd195f..9e9a46cf1 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -167,10 +167,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do end end - defp registration_process(_registration_open = true, params, _token) do - create_user(params) - end - defp registration_process(registration_open, params, token) when registration_open == false or is_nil(registration_open) do invite = @@ -193,6 +189,10 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do end end + defp registration_process(true, params, _token) do + create_user(params) + end + defp create_user(params) do changeset = User.register_changeset(%User{}, params) |