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
|
@ -8,7 +8,7 @@ import type {
|
|||
import { User } from './storage/User';
|
||||
import { Blocked } from './storage/Blocked';
|
||||
|
||||
import { assert } from '../util/assert';
|
||||
import { assertDev } from '../util/assert';
|
||||
import Data from '../sql/Client';
|
||||
import type { SignalProtocolStore } from '../SignalProtocolStore';
|
||||
import * as log from '../logging/log';
|
||||
|
@ -34,7 +34,7 @@ export class Storage implements StorageInterface {
|
|||
}
|
||||
|
||||
get protocol(): SignalProtocolStore {
|
||||
assert(
|
||||
assertDev(
|
||||
this.privProtocol !== undefined,
|
||||
'SignalProtocolStore not initialized'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue