summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-06-16 13:44:52 +0200
committerMarin Jankovski <maxlazio@gmail.com>2015-06-16 13:44:52 +0200
commitc6c3577bc6e49be3d0062983b0a5abdbcd39012a (patch)
treea76fd4abac3adea2876f263d53dab97aca697f6f /config/initializers
parent4c317531b4c23a09a4992dc8f3e2fb29f19cdeef (diff)
downloadgitlab-ce-c6c3577bc6e49be3d0062983b0a5abdbcd39012a.tar.gz
Use explicit if.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/7_omniauth.rb5
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