Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
weekens merged 2 commits into
untu:masteruntu/comedy:masterfrom
rijnhard:bugfix/no_returnrijnhard/comedy:bugfix/no_returnCopy head branch name to clipboard
Jun 2, 2022
Merged

fix(in-memory-actor) emits warning about promise handler#62
weekens merged 2 commits into
untu:masteruntu/comedy:masterfrom
rijnhard:bugfix/no_returnrijnhard/comedy:bugfix/no_returnCopy head branch name to clipboard

Conversation

@rijnhard
Copy link
Copy Markdown
Contributor

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 weekens self-requested a review June 2, 2022 07:56
@weekens weekens merged commit b719ecc into untu:master Jun 2, 2022
@weekens
Copy link
Copy Markdown
Contributor

weekens commented Jun 2, 2022

Fix released in 2.1.7. Thanks for your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.