From cd0fee8143b03f35618346de67e508407c5067ed Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Sat, 1 Feb 2014 20:49:04 -0800 Subject: [PATCH] Remove REDISTOGO_URL hardcoded support --- lib/sidekiq/redis_connection.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sidekiq/redis_connection.rb b/lib/sidekiq/redis_connection.rb index c5bcfc01..5d6f8919 100644 --- a/lib/sidekiq/redis_connection.rb +++ b/lib/sidekiq/redis_connection.rb @@ -68,9 +68,7 @@ module Sidekiq end def determine_redis_provider - # REDISTOGO_URL is only support for legacy reasons - provider = ENV['REDIS_PROVIDER'] || 'REDIS_URL' - ENV[provider] || ENV['REDISTOGO_URL'] + ENV[ENV['REDIS_PROVIDER'] || 'REDIS_URL'] end end