Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6ffc20f

Browse files
committed
Removed check for uiController
It was null on load, and works without it.
1 parent 210e167 commit 6ffc20f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/GitHub.VisualStudio/UI/Views/GitHubPaneViewModel.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,9 @@ async Task Reload([AllowNull] ViewWithData data = null, bool navigating = false)
118118

119119
if (!IsGitHubRepo.Value)
120120
{
121-
if (uiController != null)
122-
{
123-
var factory = ServiceProvider.GetExportedValue<IUIFactory>();
124-
var c = factory.CreateViewAndViewModel(UIViewType.NotAGitHubRepository);
125-
Control = c.View;
126-
}
121+
var factory = ServiceProvider.GetExportedValue<IUIFactory>();
122+
var c = factory.CreateViewAndViewModel(UIViewType.NotAGitHubRepository);
123+
Control = c.View;
127124

128125
return;
129126
}

0 commit comments

Comments
 (0)