-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make eslint shut up about unhandled promises #5566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for diving into this.
@@ -508,7 +508,7 @@ export function makeNetworkProtocol(protocolHandler) { | |||
}); | |||
|
|||
// Wire up the local protocol to the handler. | |||
E(protocolHandler).onCreate(protocolImpl, protocolHandler); | |||
void E(protocolHandler).onCreate(protocolImpl, protocolHandler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaelfig is this right? Do we need to be more careful with a rejection from onCreate
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, making it an unhandled rejection is perfectly fine.
@@ -205,7 +205,7 @@ export function makePluginManager(pluginDevice, { D, ...vatPowers }) { | |||
}); | |||
|
|||
// Declare the first reset. | |||
E(resetter).onReset(Promise.resolve(false)); | |||
void E(resetter).onReset(Promise.resolve(false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaelfig same question here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
81612f8
to
16a0589
Compare
Fixes #5535