Use explicit if.
This commit is contained in:
parent
4c317531b4
commit
c6c3577bc6
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue