Commit c6c3577b authored by Marin Jankovski's avatar Marin Jankovski

Use explicit if.

parent 4c317531
......@@ -20,7 +20,8 @@ end
if Gitlab.config.omniauth.enabled
Gitlab.config.omniauth.providers.each do |provider|
next unless provider['name'] == 'kerberos'
require 'omniauth-kerberos'
if provider['name'] == 'kerberos'
require 'omniauth-kerberos'
end
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