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

Commit b09aaba

Browse files
Cleanup
1 parent fd2ed5e commit b09aaba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GitHub.App/SampleData/PullRequestAnnotationsViewModelDesigner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelB
3131
{
3232
Annotation = new CheckRunAnnotationModel
3333
{
34-
AnnotationLevel = CheckAnnotationLevel.Notice,
34+
AnnotationLevel = CheckAnnotationLevel.Warning,
3535
StartLine = 3,
3636
EndLine = 4,
3737
Path = "asdf/asdf.cs",
@@ -44,7 +44,7 @@ public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelB
4444
{
4545
Annotation = new CheckRunAnnotationModel
4646
{
47-
AnnotationLevel = CheckAnnotationLevel.Notice,
47+
AnnotationLevel = CheckAnnotationLevel.Failure,
4848
StartLine = 3,
4949
EndLine = 4,
5050
Path = "asdf/asdf.cs",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ void Load(PullRequestDetailModel pullRequest)
124124
CheckRunName = checkSuiteRun.checkRun.Name;
125125

126126
AnnotationsDictionary = checkSuiteRun.checkRun.Annotations
127-
.GroupBy(model => model.Path)
127+
.GroupBy(annotation => annotation.Path)
128128
.ToDictionary(
129-
annotation => annotation.Key,
130-
annotation => (IReadOnlyList<IPullRequestAnnotationItemViewModel>) annotation
131-
.Select(model => new PullRequestAnnotationItemViewModel(model)));
129+
grouping => grouping.Key,
130+
grouping => (IReadOnlyList<IPullRequestAnnotationItemViewModel>) grouping
131+
.Select(annotation => new PullRequestAnnotationItemViewModel(annotation)));
132132
}
133133
finally
134134
{

0 commit comments

Comments
 (0)