test/support/apps/resque/jobs/resque_fast_job.rb in instana-1.205.0 vs test/support/apps/resque/jobs/resque_fast_job.rb in instana-1.206.0
- old
+ new
@@ -10,11 +10,9 @@
def self.perform(*args)
raise 'Invalid Args' unless args.empty?
if ENV.key?('REDIS_URL')
redis = Redis.new(:url => ENV['REDIS_URL'])
- elsif ENV.key?('REDIS_URL')
- redis = Redis.new(:url => ENV['REDIS_URL'])
else
redis = Redis.new(:url => 'redis://localhost:6379')
end
dt = Time.now