Skip to content

Commit bbc94fb

Browse files
committed
Removes unneeded async/await
1 parent 878c389 commit bbc94fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/gitExplorer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ export class GitExplorer implements TreeDataProvider<ExplorerNode> {
163163
switch (this._view) {
164164
case GitExplorerView.History: {
165165
const promise = this.getHistoryNode(editor || window.activeTextEditor);
166-
this._loading = promise.then(async _ => await Functions.wait(0));
166+
this._loading = promise.then(_ => Functions.wait(0));
167167
return promise;
168168
}
169169
default: {
170170
const promise = this.git.getRepositories();
171-
this._loading = promise.then(async _ => await Functions.wait(0));
171+
this._loading = promise.then(_ => Functions.wait(0));
172172

173173
const repositories = [...await promise];
174174
if (repositories.length === 0) return undefined; // new MessageNode('No repositories found');

0 commit comments

Comments
 (0)