Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Bugfix: Worker.all should never return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum authored and defunkt committed Jul 20, 2010
1 parent 3737f83 commit bbe25c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -24,7 +24,7 @@ class Worker

# Returns an array of all worker objects.
def self.all
Array(redis.smembers(:workers)).map { |id| find(id) }
Array(redis.smembers(:workers)).map { |id| find(id) }.compact
end

# Returns an array of all worker objects currently processing
Expand Down

0 comments on commit bbe25c7

Please sign in to comment.