diff --git a/.mailmap b/.mailmap deleted file mode 100644 index 7debd40..0000000 --- a/.mailmap +++ /dev/null @@ -1 +0,0 @@ -Thomas Morgan diff --git a/lib/async/pool/controller.rb b/lib/async/pool/controller.rb index 95857ec..a1e9234 100644 --- a/lib/async/pool/controller.rb +++ b/lib/async/pool/controller.rb @@ -170,12 +170,10 @@ def prune(retain = 0) # It's okay for this to context switch: unused.each do |resource| - if usage = @resources[resource] and usage.zero? - if block_given? - yield resource - else - retire(resource) - end + if block_given? + yield resource + else + retire(resource) end break if @resources.size <= retain