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
|
@ -1,10 +1,10 @@
|
|||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { assert } from './assert';
|
||||
import { assertDev } from './assert';
|
||||
|
||||
export function shouldNeverBeCalled(..._args: ReadonlyArray<unknown>): void {
|
||||
assert(false, 'This should never be called. Doing nothing');
|
||||
assertDev(false, 'This should never be called. Doing nothing');
|
||||
}
|
||||
|
||||
export async function asyncShouldNeverBeCalled(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue