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

Better control flow.

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