Skip to content

Commit

Permalink
Remove early return
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and Mamaduka committed Jan 29, 2025
1 parent ae39b46 commit fa9eedd
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ const scrollContainerCache = new WeakMap();
function usePopoverScroll( contentRef ) {
return useRefEffect(
( node ) => {
// Do not guard for an undefined scrollableRef because it
// scrollableRef is required and it would be a bug.
if ( ! contentRef.current ) {
return;
}

function onWheel( event ) {
const { deltaX, deltaY } = event;
const contentEl = contentRef.current;
Expand Down

0 comments on commit fa9eedd

Please sign in to comment.