Skip to content

Commit

Permalink
fix(promisifyExecMethod): fix flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 6, 2017
1 parent d1d5496 commit 5292aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function promisifyExecMethod(method: any): any {
}
})
})
return (Object.create(child, {
return (Object.create((child: any), {
then: { value: _promise.then.bind(_promise) },
catch: { value: _promise.catch.bind(_promise) },
}): any)
Expand Down

0 comments on commit 5292aee

Please sign in to comment.