Skip to content

Commit 374be57

Browse files
committed
biome: lint
1 parent 1a89a91 commit 374be57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/dev/commands/dev.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ export function registerDevCommand(cli: CAC) {
239239
const route = config.getRoute(absPath, config.dir);
240240
if (!route) return;
241241

242-
// Debounce reloads to prevent multiple rapid reloads
243-
if (reloadState.timeouts.has(absPath)) {
244-
clearTimeout(reloadState.timeouts.get(absPath)!);
242+
const existingTimeout = reloadState.timeouts.get(absPath);
243+
if (existingTimeout) {
244+
clearTimeout(existingTimeout);
245245
}
246246
if (reloadState.reloading.has(absPath)) {
247247
return;

0 commit comments

Comments
 (0)