]> git.codecow.com Git - libnemo.git/commitdiff
Set vault ticker no-op that won't get shaken as dead code.
authorChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 21:37:30 +0000 (14:37 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 21:37:30 +0000 (14:37 -0700)
src/lib/vault/vault-timer.ts

index 35efdd1d4f543ec917e05a4c655b183670a8dfad..4b60985e74d3d4466b4e7ceef1d1d3a51698dacd 100644 (file)
@@ -10,7 +10,7 @@ export class VaultTimer {
        #timeout: number | NodeJS.Timeout
 
        constructor (f: () => any, t: number) {
-               this.#ticker = setInterval(() => { }, 1000)
+               this.#ticker = setInterval(Function.prototype, 1000)
                this.#f = f
                this.#start = performance.now()
                this.#timeout = setTimeout(this.#f, t)
@@ -27,7 +27,7 @@ export class VaultTimer {
 
        resume () {
                if (this.#isPaused) {
-                       this.#ticker = setInterval(() => { }, 1000)
+                       this.#ticker = setInterval(Function.prototype, 1000)
                        this.#start = performance.now()
                        this.#timeout = setTimeout(this.#f, this.#elapsed)
                        this.#isPaused = false