mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
xo: Fix @typescript-eslint/prefer-nullish-coalescing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -33,10 +33,7 @@ export class ClipboardDecrypterImplementation implements ClipboardDecrypter {
|
||||
this.pasted = new Promise((resolve) => {
|
||||
let interval: NodeJS.Timeout | null = null;
|
||||
const startPolling = () => {
|
||||
if (interval === null) {
|
||||
interval = setInterval(poll, 1000);
|
||||
}
|
||||
|
||||
interval ??= setInterval(poll, 1000);
|
||||
void poll();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user