Skip to content

Commit bf12e30

Browse files
yungstersfacebook-github-bot
authored andcommitted
VirtualView: Remove Unnecessary ?. in updateClippingRect() (facebook#53442)
Summary: Pull Request resolved: facebook#53442 Refactors `VirtualView` to remove this unnecessary `?.` in `updateClippingRect()`. Changelog: [Internal] Reviewed By: lunaleaps Differential Revision: D80600713 fbshipit-source-id: 1a11b302f069e3b35db70831fd4f7a9bd7471cc6
1 parent ec1e973 commit bf12e30

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/view

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/view/ReactVirtualView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public class ReactVirtualView(context: Context) :
188188
// If no ScrollView, or ScrollView has disabled removeClippedSubviews, use default behavior
189189
if (
190190
parentScrollView == null ||
191-
!((parentScrollView as ReactClippingViewGroup)?.removeClippedSubviews ?: false)
191+
!((parentScrollView as ReactClippingViewGroup).removeClippedSubviews ?: false)
192192
) {
193193
super.updateClippingRect(excludedViews)
194194
return

0 commit comments

Comments
 (0)