diff options
Diffstat (limited to 'rubocop/cop/scalability/idempotent_worker.rb')
-rw-r--r-- | rubocop/cop/scalability/idempotent_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/scalability/idempotent_worker.rb b/rubocop/cop/scalability/idempotent_worker.rb index 7abde54ce7e..88b5d796def 100644 --- a/rubocop/cop/scalability/idempotent_worker.rb +++ b/rubocop/cop/scalability/idempotent_worker.rb @@ -23,7 +23,7 @@ module RuboCop # end # end # - class IdempotentWorker < RuboCop::Cop::Cop + class IdempotentWorker < RuboCop::Cop::Base include CodeReuseHelpers HELP_LINK = 'https://github.com/mperham/sidekiq/wiki/Best-Practices#2-make-your-job-idempotent-and-transactional' @@ -51,7 +51,7 @@ module RuboCop return unless in_worker?(node) return if idempotent?(node) - add_offense(node, location: :expression) + add_offense(node) end end end |