Skip to content

Commit 2e7ed45

Browse files
committed
xo: Fix @typescript-eslint/prefer-nullish-coalescing.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent bb3cad8 commit 2e7ed45

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/renderer/js/clipboard-decrypter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export class ClipboardDecrypterImplementation implements ClipboardDecrypter {
3333
this.pasted = new Promise((resolve) => {
3434
let interval: NodeJS.Timeout | null = null;
3535
const startPolling = () => {
36-
if (interval === null) {
37-
interval = setInterval(poll, 1000);
38-
}
39-
36+
interval ??= setInterval(poll, 1000);
4037
void poll();
4138
};
4239

0 commit comments

Comments
 (0)