Skip to content

Commit 100adab

Browse files
committedDec 25, 2013
Avoid possible flattening in Promise::When#map
1 parent b22350c commit 100adab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎stdlib/promise.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def collect(&block)
239239
raise ArgumentError, 'no block given' unless block
240240

241241
self.then {|values|
242-
Promise.when values.map(&block)
242+
When.new(values.map(&block))
243243
}
244244
end
245245

0 commit comments

Comments
 (0)
Please sign in to comment.