mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
More cleanup
This commit is contained in:
parent
25447c75e5
commit
919e3c7da9
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ module Sidekiq
|
|||
|
||||
# Pop out a single job and perform it
|
||||
def perform_one
|
||||
raise(EmptyQueueError, "perform_one called with empty job queue") unless jobs.size > 0
|
||||
raise(EmptyQueueError, "perform_one called with empty job queue") if jobs.empty?
|
||||
job = jobs.shift
|
||||
new.perform(*job['args'])
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue