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

ref(replay): Make root in VideoReplay* classes non-nullable #82517

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Dec 23, 2024

The class is only instantiated from one spot, and there's a guard to make sure root is not-null:

if (root === null || isFetching) {
return null;
}

Lets lean into that and enforce it.

@ryan953 ryan953 requested a review from a team as a code owner December 23, 2024 03:39
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 23, 2024
@ryan953 ryan953 merged commit 1dcf3ac into master Dec 23, 2024
42 checks passed
@ryan953 ryan953 deleted the ryan953/ref-videoReplay-root-type branch December 23, 2024 14:47
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #82517       +/-   ##
===========================================
- Coverage   86.70%   80.43%    -6.27%     
===========================================
  Files        9414     7316     -2098     
  Lines      538327   322632   -215695     
  Branches    21047    21046        -1     
===========================================
- Hits       466745   259504   -207241     
+ Misses      71175    62721     -8454     
  Partials      407      407               

andrewshie-sentry pushed a commit that referenced this pull request Jan 2, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants