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

Commit 6c387a7

Browse files
Load is only executed once
1 parent d40cba8 commit 6c387a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/GitHub.App/ViewModels/GitHubPane/PullRequestAnnotationsViewModel.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ void Load(PullRequestDetailModel pullRequest)
138138

139139
try
140140
{
141-
var firstLoad = (PullRequestTitle == null);
142-
143141
PullRequestTitle = pullRequest.Title;
144142

145143
var checkSuiteRun = pullRequest
@@ -168,10 +166,7 @@ void Load(PullRequestDetailModel pullRequest)
168166
.ToArray()
169167
);
170168

171-
if (firstLoad)
172-
{
173-
usageTracker.IncrementCounter(x => x.NumberOfPullRequestOpenAnnotationsList).Forget();
174-
}
169+
usageTracker.IncrementCounter(x => x.NumberOfPullRequestOpenAnnotationsList).Forget();
175170
}
176171
finally
177172
{

0 commit comments

Comments
 (0)