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

Commit 06562db

Browse files
committed
Add useful comment
1 parent 892a155 commit 06562db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.VisualStudio/Base/TeamExplorerServiceHolder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ void CheckAndUpdate(object sender, System.ComponentModel.PropertyChangedEventArg
141141
return;
142142

143143
var repo = service.ActiveRepositories.FirstOrDefault();
144+
// this comparison is safe, the extension method supports null instances
144145
if (!repo.Compare(ActiveRepo))
145146
// so annoying that this is on the wrong thread
146147
syncContext.Post(r => ActiveRepo = r as IGitRepositoryInfo, repo);

0 commit comments

Comments
 (0)