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:
Matt Bierner
2018-12-11 21:59:32 -08:00
parent a256e72786
commit 0b1d0da7af
39 changed files with 78 additions and 78 deletions

View File

@@ -114,7 +114,7 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
return undefined;
});
});
}).then(null, err => {
}).then(void 0, err => {
if (isPromiseCanceledError(err)) {
return undefined;
}
@@ -139,7 +139,7 @@ export class ExtHostQuickOpen implements ExtHostQuickOpenShape {
this._validateInput = options && options.validateInput;
return this._proxy.$input(options, typeof this._validateInput === 'function', token)
.then(null, err => {
.then(void 0, err => {
if (isPromiseCanceledError(err)) {
return undefined;
}