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