mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add no-misused/floating-promises lint rule
This commit is contained in:
@@ -132,14 +132,14 @@ export function createWaitBatcher<ItemType>(
|
||||
// time is bounded by `options.wait` and not extended by further pushes.
|
||||
timeout = setTimeout(() => {
|
||||
timeout = null;
|
||||
_kickBatchOff();
|
||||
void _kickBatchOff();
|
||||
}, options.wait);
|
||||
}
|
||||
if (items.length >= options.maxSize) {
|
||||
clearTimeoutIfNecessary(timeout);
|
||||
timeout = null;
|
||||
|
||||
_kickBatchOff();
|
||||
void _kickBatchOff();
|
||||
}
|
||||
|
||||
await promise;
|
||||
|
||||
Reference in New Issue
Block a user