Skip to content

Commit e262a63

Browse files
authored
Add missing semicolons and improve indentation (#3957)
## Description This PR fixes building the app in release mode which was broken because of missing semicolons. <img width="266" height="134" alt="Screenshot 2026-02-05 at 21 59 38" src="https://github.com/user-attachments/assets/9c82b169-9328-4618-81b3-983413881196" /> ## Test plan <!-- Describe how did you test this change here. -->
1 parent edab187 commit e262a63

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ - (void)willMoveToWindow:(RNGHWindow *)newWindow
4747
{
4848
if (newWindow == nil) {
4949
RNGestureHandlerManager *handlerManager = [RNGestureHandlerModule handlerManagerForModuleId:_moduleId];
50-
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager")
51-
const auto &props = *std::static_pointer_cast<const RNGestureHandlerDetectorProps>(_props);
50+
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager");
51+
52+
const auto &props = *std::static_pointer_cast<const RNGestureHandlerDetectorProps>(_props);
5253

5354
for (const auto handler : props.handlerTags) {
5455
NSNumber *handlerTag = [NSNumber numberWithInt:handler];
@@ -190,9 +191,9 @@ - (void)attachHandlers:(const std::vector<int> &)handlerTags
190191
attachedHandlers:(NSMutableSet *)attachedHandlers
191192
{
192193
RNGestureHandlerManager *handlerManager = [RNGestureHandlerModule handlerManagerForModuleId:_moduleId];
193-
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager")
194+
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager");
194195

195-
NSMutableSet *handlersToDetach = [attachedHandlers mutableCopy];
196+
NSMutableSet *handlersToDetach = [attachedHandlers mutableCopy];
196197

197198
for (const int tag : handlerTags) {
198199
[handlersToDetach removeObject:@(tag)];
@@ -262,9 +263,9 @@ - (void)updateProps:(const Props::Shared &)propsBase oldProps:(const Props::Shar
262263
- (void)updateVirtualChildren:(const std::vector<RNGestureHandlerDetectorVirtualChildrenStruct> &)virtualChildren
263264
{
264265
RNGestureHandlerManager *handlerManager = [RNGestureHandlerModule handlerManagerForModuleId:_moduleId];
265-
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager")
266+
react_native_assert(handlerManager != nullptr && "Tried to access a non-existent handler manager");
266267

267-
NSMutableSet *virtualChildrenToDetach = [NSMutableSet set];
268+
NSMutableSet *virtualChildrenToDetach = [NSMutableSet set];
268269
for (const auto &child : _attachedVirtualHandlers) {
269270
[virtualChildrenToDetach addObject:@(child.first)];
270271
}

0 commit comments

Comments
 (0)