From e5d62c8cd6b61d75f0c6e59579de62eebfcfa1d6 Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Wed, 14 Jun 2023 07:11:47 +0000 Subject: [PATCH] Auto corrected by following Lint Ruby Lint/UnusedMethodArgument --- lib/resque/plugins/restriction.rb | 4 ++-- spec/spec_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resque/plugins/restriction.rb b/lib/resque/plugins/restriction.rb index c702361..04121e5 100644 --- a/lib/resque/plugins/restriction.rb +++ b/lib/resque/plugins/restriction.rb @@ -60,7 +60,7 @@ def after_perform_restriction(*args) end end - def on_failure_restriction(ex, *args) + def on_failure_restriction(_ex, *args) after_perform_restriction(*args) end @@ -76,7 +76,7 @@ def resque_restriction_redis_key(period, *args) [RESTRICTION_QUEUE_PREFIX, self.restriction_identifier(*args), custom_value, period_str].compact.join(":") end - def restriction_identifier(*args) + def restriction_identifier(*_args) self.to_s end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95b46b1..1f2f5dd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -107,7 +107,7 @@ class ConcurrentRestrictionJob @queue = 'normal' - def self.perform(*args) + def self.perform(*_args) sleep 0.2 end end