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

@@ -467,6 +467,6 @@ function renderPackageNameValidationFailureWorker(typing: string, result: NameVa
case NameValidationResult.Ok:
return Debug.fail(); // Shouldn't have called this.
default:
throw Debug.assertNever(result);
Debug.assertNever(result);
}
}