mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Prefer to use .then(void 0, ..) over .then(null, ..)
ES6 promises like using undefined as their first argument instead of null. Both should behave the same behavior
This commit is contained in:
@@ -604,7 +604,7 @@ export class ExtHostTextEditor implements vscode.TextEditor {
|
||||
}
|
||||
|
||||
function warnOnError(promise: Thenable<any>): void {
|
||||
promise.then(null, (err) => {
|
||||
promise.then(void 0, (err) => {
|
||||
console.warn(err);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user