style(sync): replace stray var with const in restartSyncInterval
Lone var in an otherwise let/const file — promote to const since the value never gets reassigned. No behavior change.
This commit is contained in:
parent
c952156491
commit
9a8a1a9f8e
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue