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

Commit bade798

Browse files
Code cleanup
1 parent b086078 commit bade798

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class PullRequestSessionService : IPullRequestSessionService
3838
{
3939
static readonly ILogger log = LogManager.ForContext<PullRequestSessionService>();
4040
static ICompiledQuery<PullRequestDetailModel> readPullRequest;
41-
static ICompiledQuery<IEnumerable<LastCommitAdapter>> readCheckSuites;
41+
static ICompiledQuery<IEnumerable<LastCommitAdapter>> readCommitStatuses;
4242
static ICompiledQuery<ActorModel> readViewer;
4343

4444
readonly IGitService gitService;
@@ -359,9 +359,9 @@ public virtual async Task<PullRequestDetailModel> ReadPullRequestDetail(HostAddr
359359

360360
private async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddress address, string owner, string name, int number)
361361
{
362-
if(readCheckSuites == null)
362+
if(readCommitStatuses == null)
363363
{
364-
readCheckSuites = new Query()
364+
readCommitStatuses = new Query()
365365
.Repository(Var(nameof(owner)), Var(nameof(name)))
366366
.PullRequest(Var(nameof(number))).Commits(last: 1).Nodes.Select(
367367
commit => new LastCommitAdapter
@@ -389,7 +389,7 @@ private async Task<LastCommitAdapter> GetPullRequestLastCommitAdapter(HostAddres
389389
};
390390

391391
var connection = await graphqlFactory.CreateConnection(address);
392-
var result = await connection.Run(readCheckSuites, vars);
392+
var result = await connection.Run(readCommitStatuses, vars);
393393
return result.First();
394394
}
395395

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestDetailView.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@
257257
</DataTemplate>
258258
</ItemsControl.ItemTemplate>
259259
</ItemsControl>
260-
261260
</ghfvs:SectionControl>
262261

263262
<!-- Files changed -->

0 commit comments

Comments
 (0)