Skip to content

Commit 63e2743

Browse files
Potential fix for pull request finding 'CodeQL / Useless comparison test'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e356ae1 commit 63e2743

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,10 @@ export function generateTrigger(
480480
popupEle.getBoundingClientRect(),
481481
);
482482

483-
const refreshDelay =
484-
mouseLeaveDelay > 0
485-
? Math.max(1000 / 60, Math.min(mouseLeaveDelay * 1000, 1000))
486-
: 0;
483+
const refreshDelay = Math.max(
484+
1000 / 60,
485+
Math.min(mouseLeaveDelay * 1000, 1000),
486+
);
487487

488488
const scheduleRefresh = () => {
489489
const safeHover = safeHoverRef.current;

0 commit comments

Comments
 (0)