Skip to content

Commit 244b4d9

Browse files
committed
chore: improve code style
1 parent 6c814b2 commit 244b4d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hooks/useMobileTouchMove.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export default function useMobileTouchMove(
7474
}
7575

7676
return () => {
77-
if(listRef.current) {
78-
listRef.current.removeEventListener('touchstart', onTouchStart);
79-
}
77+
listRef.current?.removeEventListener('touchstart', onTouchStart);
8078
cleanUpEvents();
8179
clearInterval(intervalRef.current);
8280
};

0 commit comments

Comments
 (0)