From 9a8a1a9f8ea160e6fe89443d7c6fc77b0939a938 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Apr 2026 07:13:47 +0000 Subject: [PATCH] style(sync): replace stray var with const in restartSyncInterval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lone var in an otherwise let/const file — promote to const since the value never gets reassigned. No behavior change. --- apps/tauri/src/lib/stores/app.svelte.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tauri/src/lib/stores/app.svelte.ts b/apps/tauri/src/lib/stores/app.svelte.ts index c327c0d..451cbb7 100644 --- a/apps/tauri/src/lib/stores/app.svelte.ts +++ b/apps/tauri/src/lib/stores/app.svelte.ts @@ -418,7 +418,7 @@ function debouncedSync() { function restartSyncInterval() { if (_syncInterval) clearInterval(_syncInterval); - var secs = _appFocused ? syncIntervalSecs : syncIntervalUnfocusedSecs; + const secs = _appFocused ? syncIntervalSecs : syncIntervalUnfocusedSecs; _syncInterval = setInterval(triggerSync, secs * 1000); }