-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add eslint rule @typescript-eslint/no-floating-promises in demos
and docs
directory
#769
Add eslint rule @typescript-eslint/no-floating-promises in demos
and docs
directory
#769
Conversation
no-floating-promises
in docs and demos dirsdemos
and docs
directory
1563059
to
852c932
Compare
852c932
to
becd1cb
Compare
demos/utils/run.ts
Outdated
@@ -20,7 +20,7 @@ export async function runCompositorExample( | |||
|
|||
await fn(); | |||
} catch (err) { | |||
logError(err); | |||
void logError(err); |
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.
void logError(err); | |
await logError(err); |
3100769
to
8d343bc
Compare
demos/utils/gst.ts
Outdated
@@ -31,7 +31,7 @@ export function gstStreamWebcam(ip: string, port: number, displayOutput: boolean | |||
|
|||
function checkGstPlugins(plugins: string[]) { | |||
plugins.forEach(plugin => { |
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.
this function is incorrect, exception will not be thrown in checkGstPlugins
convert it to regular for loop, or await Promise.all(plugins.map(plugin => ...))
d9b62c7
to
7e73c56
Compare
No description provided.