2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2022-07-21 00:07:09 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2022-09-15 19:17:15 +00:00
|
|
|
import { assertDev } from './assert';
|
2022-07-21 00:07:09 +00:00
|
|
|
|
|
|
|
export function shouldNeverBeCalled(..._args: ReadonlyArray<unknown>): void {
|
2022-09-15 19:17:15 +00:00
|
|
|
assertDev(false, 'This should never be called. Doing nothing');
|
2022-07-21 00:07:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function asyncShouldNeverBeCalled(
|
|
|
|
..._args: ReadonlyArray<unknown>
|
|
|
|
): Promise<undefined> {
|
|
|
|
shouldNeverBeCalled();
|
|
|
|
|
|
|
|
return undefined;
|
|
|
|
}
|