Skip to content

Commit 93412f4

Browse files
committed
avoiding indentation
1 parent 0f58258 commit 93412f4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/react-native-gesture-handler/src/v3/LogicDetector.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ export function LogicDetector<THandlerData, TConfig>(
1616

1717
const handleRef = useCallback((node: any) => {
1818
viewRef.current = node;
19-
if (node) {
20-
if (Platform.OS === 'web') {
21-
setViewTag(node);
22-
} else {
23-
const tag = findNodeHandle(node);
24-
if (tag != null) {
25-
setViewTag(tag);
26-
}
19+
if (!node) {
20+
return;
21+
}
22+
23+
if (Platform.OS === 'web') {
24+
setViewTag(node);
25+
} else {
26+
const tag = findNodeHandle(node);
27+
if (tag != null) {
28+
setViewTag(tag);
2729
}
2830
}
2931
}, []);

0 commit comments

Comments
 (0)