Remove redundant throws of Debug.assertNever (#53405)

This commit is contained in:
Jake Bailey
2023-03-21 16:04:06 -07:00
committed by GitHub
parent 3f90887a6e
commit 2c952fe850
5 changed files with 8 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ interface Info {
function getInfo(sourceFile: SourceFile, program: Program, pos: number): Info | undefined {
const { parent } = getTokenAtPosition(sourceFile, pos);
if (!isRequireCall(parent, /*checkArgumentIsStringLiteralLike*/ true)) {
throw Debug.failBadSyntaxKind(parent);
Debug.failBadSyntaxKind(parent);
}
const decl = cast(parent.parent, isVariableDeclaration);