Commit 61fc9aa8 authored by Patricio Cano's avatar Patricio Cano

Better control flow.

parent 31bcd9f8
...@@ -54,12 +54,10 @@ module Gitlab ...@@ -54,12 +54,10 @@ module Gitlab
@user ||= build_new_user @user ||= build_new_user
end end
unless @user.nil? if external_provider? && @user
if external_provider? @user.external = true
@user.external = true elsif @user
else @user.external = false
@user.external = false
end
end end
@user @user
......
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