Use explicit if.

This commit is contained in:
Marin Jankovski 2015-06-16 13:44:52 +02:00
parent 4c317531b4
commit c6c3577bc6

View file

@ -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