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

@@ -232,7 +232,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape {
// Trigger on main side
if (this._proxy) {
const extName = extension.displayName || extension.name;
this._proxy.$updateWorkspaceFolders(extName, index, deleteCount, validatedDistinctWorkspaceFoldersToAdd).then(null, error => {
this._proxy.$updateWorkspaceFolders(extName, index, deleteCount, validatedDistinctWorkspaceFoldersToAdd).then(void 0, error => {
// in case of an error, make sure to clear out the unconfirmed workspace
// because we cannot expect the acknowledgement from the main side for this