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

Better control flow.

parent 31bcd9f8
...@@ -54,13 +54,11 @@ module Gitlab ...@@ -54,13 +54,11 @@ 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
else elsif @user
@user.external = false @user.external = false
end end
end
@user @user
end end
......
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