Skip to content

Commit 098bb3c

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 6ba40ac commit 098bb3c

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(16, Math.min(mouseLeaveDelay * 500, 100))
486-
: 0;
483+
const refreshDelay = Math.max(
484+
16,
485+
Math.min(mouseLeaveDelay * 500, 100),
486+
);
487487
const scheduleRefresh = () => {
488488
const safeHover = safeHoverRef.current;
489489

0 commit comments

Comments
 (0)