diff options
author | Andrei Gliga <otzy_007@yahoo.com> | 2016-05-10 18:48:08 +0300 |
---|---|---|
committer | Andrei Gliga <otzy_007@yahoo.com> | 2016-05-12 13:44:46 +0300 |
commit | e87c96eef6d8d837bf4475e2681f4c5c5e40488d (patch) | |
tree | 46454c2376c529afd02707476852059979ca0d72 /app/helpers | |
parent | 25ff3fd5bdd8645f45254aa52397f8d6b49386b5 (diff) | |
download | gitlab-ce-e87c96eef6d8d837bf4475e2681f4c5c5e40488d.tar.gz |
enabled_button_based_providers.any? instead of ! empty? for button_based_providers_enabled?
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/auth_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index 3e1f4209254..b05fa0a14d6 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -45,7 +45,7 @@ module AuthHelper end def button_based_providers_enabled? - !enabled_button_based_providers.empty? + enabled_button_based_providers.any? end def provider_image_tag(provider, size = 64) |