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

Commit 59b6c01

Browse files
committed
Remove debug code from PR list source.
And set `ConfigureAwait(true)`.
1 parent 22777fe commit 59b6c01

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected override IIssueListItemViewModelBase CreateViewModel(PullRequestListIt
122122
return result;
123123
}
124124

125-
protected override Task<Page<PullRequestListItemModel>> LoadPage(string after)
125+
protected override async Task<Page<PullRequestListItemModel>> LoadPage(string after)
126126
{
127127
PullRequestStateEnum[] states;
128128

@@ -139,15 +139,12 @@ protected override Task<Page<PullRequestListItemModel>> LoadPage(string after)
139139
break;
140140
}
141141

142-
var sw = Stopwatch.StartNew();
143-
var result = owner.service.ReadPullRequests(
142+
var result = await owner.service.ReadPullRequests(
144143
HostAddress.Create(owner.RemoteRepository.CloneUrl),
145144
owner.RemoteRepository.Owner,
146145
owner.RemoteRepository.Name,
147146
after,
148-
states);
149-
sw.Stop();
150-
System.Diagnostics.Debug.WriteLine("Read PR page in " + sw.Elapsed);
147+
states).ConfigureAwait(false);
151148
return result;
152149
}
153150
}

0 commit comments

Comments
 (0)