Skip to content

Commit

Permalink
fix: remove duplicate call to __check_for_promise__
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jan 7, 2020
1 parent ced53f3 commit 611e038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promise/resolved_promise.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Promise::ResolvedPromise(Input) < Promise::DeferredPromise(Input)

def execute!
# Replace NoReturn with Nil if the block will always `raise` an error
generic_type = Generic(Output).new.type_var.__check_for_promise__
generic_type = Generic(Output).new.type_var
promise = DeferredPromise(typeof(generic_type)).new

spawn(same_thread: true) do
Expand Down

0 comments on commit 611e038

Please sign in to comment.