mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-06-20 08:43:44 +00:00
Remove unnecessary code now that typescript understands process.exit
Change-type: patch
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user