Cleanup redundant code

This commit is contained in:
Konstantin Solomatov
2021-04-01 10:10:40 -07:00
parent c25aa77e33
commit 03666a0680

View File

@@ -87,7 +87,7 @@ export class ExtensionMemento implements vscode.Memento {
}
this._timeout = setTimeout(() => {
const records = { ...this._promiseRecords };
const records = this._promiseRecords;
this._promiseRecords = {};
(async () => {
try {
@@ -101,7 +101,6 @@ export class ExtensionMemento implements vscode.Memento {
}
}
})();
this._promiseRecords = {};
}, 0);
return promise;