lib/sidekiq/circuit_breaker/worker.rb in sidekiq-circuit-breaker-0.1.3 vs lib/sidekiq/circuit_breaker/worker.rb in sidekiq-circuit-breaker-0.1.4

- old
+ new

@@ -21,9 +21,10 @@ end def extract_scope(options, args) scope = options.scope return scope if scope.is_a?(String) + return unless scope.respond_to?(:call) options.scope.call(*args) end