[SCM] ci-tooling packaging branch, master, updated. 061cabe9325b47cfecc73da996b16d73530c975a
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon Dec 7 13:31:37 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=8de2b28
The following commit has been merged in the master branch:
commit 8de2b282fb97fc984ce3bdd4e3531f5b41ace7db
Author: Harald Sitter <sitter at kde.org>
Date: Mon Dec 7 14:22:09 2015 +0100
remove useless code dupe
---
lib/thread_pool.rb | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/lib/thread_pool.rb b/lib/thread_pool.rb
index d16fdca..81840fd 100644
--- a/lib/thread_pool.rb
+++ b/lib/thread_pool.rb
@@ -12,13 +12,9 @@ module BlockingThreadPool
def self.run(count = 16, abort_on_exception: true, &block)
threads = []
count.times do
- if abort_on_exception
- threads << Thread.new(nil) do
- Thread.current.abort_on_exception = abort_on_exception
- block.call
- end
- else
- threads << Thread.new(nil, &block)
+ threads << Thread.new(nil) do
+ Thread.current.abort_on_exception = abort_on_exception
+ block.call
end
end
ThreadsWait.all_waits(threads)
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list