Skip to content
Snippets Groups Projects
Commit 61fc9aa8 authored by Patricio Cano's avatar Patricio Cano
Browse files

Better control flow.

parent 31bcd9f8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment