1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

More cleanup

This commit is contained in:
Mike Perham 2013-05-30 21:16:56 -07:00
parent 25447c75e5
commit 919e3c7da9

View file

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