tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev
This commit is contained in:
parent
f627a05cf8
commit
eb10aafd7c
57 changed files with 213 additions and 176 deletions
|
@ -9,7 +9,7 @@ import EventTarget from './EventTarget';
|
|||
import MessageReceiver from './MessageReceiver';
|
||||
import type { ContactSyncEvent, GroupSyncEvent } from './messageReceiverEvents';
|
||||
import MessageSender from './SendMessage';
|
||||
import { assert } from '../util/assert';
|
||||
import { assertDev } from '../util/assert';
|
||||
import * as log from '../logging/log';
|
||||
import { singleProtoJobQueue } from '../jobs/singleProtoJobQueue';
|
||||
import * as Errors from '../types/errors';
|
||||
|
@ -49,7 +49,10 @@ class SyncRequestInner extends EventTarget {
|
|||
|
||||
async start(): Promise<void> {
|
||||
if (this.started) {
|
||||
assert(false, 'SyncRequestInner: started more than once. Doing nothing');
|
||||
assertDev(
|
||||
false,
|
||||
'SyncRequestInner: started more than once. Doing nothing'
|
||||
);
|
||||
return;
|
||||
}
|
||||
this.started = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue