Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/resque/plugins/restriction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ConcurrentRestrictionJob

@queue = 'normal'

def self.perform(*args)
def self.perform(*_args)
sleep 0.2
end
end
Expand Down