diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-06-16 13:44:52 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-06-16 13:44:52 +0200 |
commit | c6c3577bc6e49be3d0062983b0a5abdbcd39012a (patch) | |
tree | a76fd4abac3adea2876f263d53dab97aca697f6f /config/initializers | |
parent | 4c317531b4c23a09a4992dc8f3e2fb29f19cdeef (diff) | |
download | gitlab-ce-c6c3577bc6e49be3d0062983b0a5abdbcd39012a.tar.gz |
Use explicit if.
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/7_omniauth.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/initializers/7_omniauth.rb b/config/initializers/7_omniauth.rb index f29216a2cf1..df73ec1304a 100644 --- a/config/initializers/7_omniauth.rb +++ b/config/initializers/7_omniauth.rb @@ -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 |