Skip to content

Commit

Permalink
fix(map): value rather than ASTNode
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed Dec 6, 2019
1 parent 0c8217d commit 1665b5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: promise
version: 1.4.2
version: 1.4.3

development_dependencies:
ameba:
Expand Down
2 changes: 1 addition & 1 deletion src/promise.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ abstract class Promise
end

macro map(collection, same_thread = false, &block)
%promise_collection = collection.map do |{{*block.args}}|
%promise_collection = {{collection}}.map do |{{*block.args}}|
::Promise.defer(same_thread: {{same_thread}}) do
{{block.body}}
end
Expand Down

0 comments on commit 1665b5a

Please sign in to comment.