Skip to content

Commit 86a6dc2

Browse files
committed
Fix an unused variable assign warning
1 parent f298943 commit 86a6dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matrixeval/ruby/runner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ def report
160160
end
161161

162162
def parallel(collection)
163-
threads = []
164-
matrixeval_results = []
163+
threads = [] unless threads.empty?
164+
matrixeval_results = [] unless matrixeval_results.empty?
165165

166166
collection.each_slice(per_worker_contexts_count) do |sub_collection|
167167
threads << Thread.new do

0 commit comments

Comments
 (0)