Remove unnecessary code now that typescript understands process.exit

Change-type: patch
This commit is contained in:
Pagan Gazzard
2020-02-03 13:06:23 +00:00
parent 1417875110
commit 27e1f3f7d7
3 changed files with 1 additions and 4 deletions

View File

@ -454,6 +454,4 @@ export function exitWithExpectedError(message: string | Error): never {
printErrorMessage(message);
process.exit(1);
// The following throw is to make tsc happy about the `never` return type.
throw new Error('exit');
}