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

Commit a5652dd

Browse files
author
Jasmine
committed
condense null check
1 parent 75a3df4 commit a5652dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/GitHub.VisualStudio/Base/MenuBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ protected async Task<bool> IsGitHubRepo()
113113
{
114114
RefreshRepo();
115115

116-
if(ActiveRepo == null)
117-
return false;
118-
119-
var uri = ActiveRepo.CloneUrl;
116+
var uri = ActiveRepo?.CloneUrl;
120117
if (uri == null)
121118
return false;
122119

0 commit comments

Comments
 (0)