1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Don't set the :url key unless available

This commit is contained in:
Mike Perham 2020-03-23 10:41:54 -07:00
parent 05f874edea
commit 290d4f35df

View file

@ -12,7 +12,9 @@ module Sidekiq
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]