Skip to content

ref(replay): Enable @typescript-eslint/no-floating-promises rule #6344

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

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

mydea
Copy link
Member

@mydea mydea commented Nov 30, 2022

This one was rather straightforward, basically adding void before floating promises.

@mydea mydea added the Package: replay Issues related to the Sentry Replay SDK label Nov 30, 2022
@mydea mydea requested a review from Lms24 November 30, 2022 13:13
@mydea mydea self-assigned this Nov 30, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 30, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.57 KB (-0.02% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.59 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.36 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 54.15 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.12 KB (0%)
@sentry/browser - Webpack (minified) 65.75 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.14 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.99 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.44 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.88 KB (+0.02% 🔺)
@sentry/replay index.js 62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified) 62.08 KB (-0.01% 🔽)
@sentry/replay - Webpack (minified) 199.79 KB (-0.03% 🔽)

@@ -755,7 +755,7 @@ export class Replay implements Integration {
}

if (result.category === 'ui.click') {
this.triggerUserActivity();
void this.triggerUserActivity();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: I'm wondering why this method is async in the first place. Probably missing something but afaict it's never used in an async context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I'll just make this un-async!

@mydea mydea force-pushed the fn/replay-no-floating-promises branch from fc7b412 to a906553 Compare November 30, 2022 14:26
@mydea mydea changed the title ref(replay): Enable '@typescript-eslint/no-floating-promises' rule ref(replay): Enable @typescript-eslint/no-floating-promises rule Nov 30, 2022
@mydea mydea merged commit bb7a021 into master Nov 30, 2022
@mydea mydea deleted the fn/replay-no-floating-promises branch November 30, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: replay Issues related to the Sentry Replay SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants