summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAndrei Gliga <otzy_007@yahoo.com>2016-05-10 18:48:08 +0300
committerAndrei Gliga <otzy_007@yahoo.com>2016-05-12 13:44:46 +0300
commite87c96eef6d8d837bf4475e2681f4c5c5e40488d (patch)
tree46454c2376c529afd02707476852059979ca0d72 /app/helpers
parent25ff3fd5bdd8645f45254aa52397f8d6b49386b5 (diff)
downloadgitlab-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.rb2
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)