diff options
Diffstat (limited to 'rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb')
-rw-r--r-- | rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb b/rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb index 7a2e7ee00b4..34c3767ad11 100644 --- a/rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb +++ b/rubocop/cop/sidekiq_load_balancing/worker_data_consistency.rb @@ -23,7 +23,7 @@ module RuboCop # end # end # - class WorkerDataConsistency < RuboCop::Cop::Cop + class WorkerDataConsistency < RuboCop::Cop::Base include CodeReuseHelpers HELP_LINK = 'https://docs.gitlab.com/ee/development/sidekiq_style_guide.html#job-data-consistency-strategies' @@ -57,7 +57,7 @@ module RuboCop return unless in_worker?(node) && application_worker?(node) return if data_consistency_defined?(node) - add_offense(node, location: :expression) + add_offense(node) end end end |