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

Better control flow.

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