From c1cad413d26cd217c7d79b20870f90d090146678 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 6 Aug 2024 23:52:01 +1200 Subject: [PATCH] fix lint --- packages/rx/src/Rx.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rx/src/Rx.ts b/packages/rx/src/Rx.ts index ddc7fa0..6bd8492 100644 --- a/packages/rx/src/Rx.ts +++ b/packages/rx/src/Rx.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-empty-object-type */ /** * @since 1.0.0 */ @@ -1232,7 +1233,7 @@ export const debounce: { get.setSelfSync(get.once(self)) } get.addFinalizer(function() { - timeout && clearTimeout(timeout) + if (timeout) clearTimeout(timeout) }) get.subscribe(self, function(val) { value = val