Skip to content
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(types): Remove unnecessary type assertions #4821

Merged
merged 8 commits into from
Mar 30, 2022

Conversation

lobsterkatie
Copy link
Member

Now that most of our isXXX functions use type predicates, there are a number of places in the code where we no longer have to cast values to a certain type. This covers a few of those instances (pulled from another PR to reduce noise), along with a few others the linter found.

@lobsterkatie lobsterkatie requested review from a team, lforst and AbhiPrasad and removed request for a team March 29, 2022 21:22
@lobsterkatie lobsterkatie enabled auto-merge (squash) March 29, 2022 21:25
@github-actions
Copy link
Contributor

github-actions bot commented Mar 29, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.06 KB (-0.11% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 64.54 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.78 KB (-0.04% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 57.95 KB (-0.01% 🔽)
@sentry/browser - Webpack (gzipped + minified) 23.22 KB (-0.04% 🔽)
@sentry/browser - Webpack (minified) 82.46 KB (-0.01% 🔽)
@sentry/react - Webpack (gzipped + minified) 23.25 KB (-0.04% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 48.19 KB (-0.02% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.98 KB (-0.11% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.41 KB (-0.04% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-remove-unnecessary-type-assertions branch from a04fb96 to 20dd4f1 Compare March 30, 2022 00:23
@lobsterkatie lobsterkatie merged commit 76b0c1f into master Mar 30, 2022
@lobsterkatie lobsterkatie deleted the kmclb-remove-unnecessary-type-assertions branch March 30, 2022 00:42
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.

None yet

2 participants