debt - less use of <any> casts

This commit is contained in:
Benjamin Pasero
2016-12-12 12:04:33 +01:00
parent 8ddcdbfa95
commit fc1a9e6091
15 changed files with 103 additions and 110 deletions

View File

@@ -20,7 +20,7 @@ import * as errors from 'vs/base/common/errors';
const nativeExit = process.exit.bind(process);
process.exit = function () {
const err = new Error('An extension called process.exit() and this was prevented.');
console.warn((<any>err).stack);
console.warn(err.stack);
};
export function exit(code?: number) {
nativeExit(code);