From bbc94fb1e10076006c24ab3bd05362d68541c822 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 21 Nov 2017 01:11:54 -0500 Subject: [PATCH] Removes unneeded async/await --- src/views/gitExplorer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/gitExplorer.ts b/src/views/gitExplorer.ts index 0e11ff2..5ba1d8a 100644 --- a/src/views/gitExplorer.ts +++ b/src/views/gitExplorer.ts @@ -163,12 +163,12 @@ export class GitExplorer implements TreeDataProvider { switch (this._view) { case GitExplorerView.History: { const promise = this.getHistoryNode(editor || window.activeTextEditor); - this._loading = promise.then(async _ => await Functions.wait(0)); + this._loading = promise.then(_ => Functions.wait(0)); return promise; } default: { const promise = this.git.getRepositories(); - this._loading = promise.then(async _ => await Functions.wait(0)); + this._loading = promise.then(_ => Functions.wait(0)); const repositories = [...await promise]; if (repositories.length === 0) return undefined; // new MessageNode('No repositories found');