Skip to content

Commit 13b7f97

Browse files
committed
Avoids needless call
1 parent 5c6c2cf commit 13b7f97

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/webviews/home/homeWebview.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,7 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
10221022
if (repoPath != null) {
10231023
repo = this.container.git.getRepository(repoPath)!;
10241024
} else {
1025-
repo = this.container.git.highlander;
1026-
if (repo == null) {
1027-
repo = this.container.git.getBestRepositoryOrFirst();
1028-
}
1025+
repo = this.container.git.getBestRepositoryOrFirst();
10291026
}
10301027

10311028
this._repositorySubscription?.dispose();

0 commit comments

Comments
 (0)