VirtualView: Remove Unnecessary ?. in updateClippingRect() (#53442)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53442

Refactors `VirtualView` to remove this unnecessary `?.` in `updateClippingRect()`.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D80600713

fbshipit-source-id: 1a11b302f069e3b35db70831fd4f7a9bd7471cc6
This commit is contained in:
Tim Yung
2025-08-22 17:49:05 -07:00
committed by Facebook GitHub Bot
parent ec1e97342a
commit bf12e30cb7
@@ -188,7 +188,7 @@ public class ReactVirtualView(context: Context) :
// If no ScrollView, or ScrollView has disabled removeClippedSubviews, use default behavior
if (
parentScrollView == null ||
!((parentScrollView as ReactClippingViewGroup)?.removeClippedSubviews ?: false)
!((parentScrollView as ReactClippingViewGroup).removeClippedSubviews ?: false)
) {
super.updateClippingRect(excludedViews)
return