mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Remove redundant throws of Debug.assertNever (#53405)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user