Closed rijnhard closed 2 years ago
if you run the getting started example with the node --trace-warnings flag it yields the following error Warning: a promise was created in a handler but was not returned from it
node --trace-warnings
this fixes it. I return null instead of the inner P.resolve() because the function originally had no return, so this doesn't introduce any new behaviour.
null
P.resolve()
If it should return a value then I will gladly make the change.
Fix released in 2.1.7. Thanks for your PR!
2.1.7
if you run the getting started example with the
node --trace-warnings
flag it yields the following error Warning: a promise was created in a handler but was not returned from itthis fixes it. I return
null
instead of the innerP.resolve()
because the function originally had no return, so this doesn't introduce any new behaviour.If it should return a value then I will gladly make the change.