Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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/auth_helper.rb
parent25ff3fd5bdd8645f45254aa52397f8d6b49386b5 (diff)
enabled_button_based_providers.any? instead of ! empty? for button_based_providers_enabled?
Diffstat (limited to 'app/helpers/auth_helper.rb')
-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)