untu / comedy

Node.js actor framework.
Eclipse Public License 1.0
653 stars 36 forks source link

fix(in-memory-actor) emits warning about promise handler #62

Closed rijnhard closed 2 years ago

rijnhard commented 3 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

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.

If it should return a value then I will gladly make the change.

weekens commented 2 years ago

Fix released in 2.1.7. Thanks for your PR!