Skip to content

Commit

Permalink
Don't set the :url key unless available
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 23, 2020
1 parent 05f874e commit 290d4f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sidekiq/redis_connection.rb
Expand Up @@ -12,7 +12,9 @@ def create(options = {})
options[key.to_sym] = options.delete(key)
end

options[:url] ||= determine_redis_provider
if !options[:url] && (u = determine_redis_provider)
options[:url] = u
end

size = if options[:size]
options[:size]
Expand Down

0 comments on commit 290d4f3

Please sign in to comment.