Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion spec/truffle/tags/core/array/product_tags.txt

This file was deleted.

5 changes: 2 additions & 3 deletions truffle/src/main/ruby/core/array.rb
Original file line number Diff line number Diff line change
@@ -717,9 +717,8 @@ def product(*args)
outer_lambda.call([])

if block_given?
block_result = self
result.each { |v| block_result << yield(v) }
block_result
result.each { |v| yield(v) }
self
else
result
end

0 comments on commit 08f1803

Please sign in to comment.