Skip to content

Commit 9eba76a

Browse files
committed
fix Formatting
1 parent 8160b79 commit 9eba76a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/LinkDotNet.Blog.Web/Features/Archive/ArchivePage.razor

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@
4444
</div>
4545

4646
@code {
47-
private IReadOnlyCollection<IGrouping<int, BlogPostPerYear>> blogPostsPerYear;
48-
private int blogPostCount;
47+
private IReadOnlyCollection<IGrouping<int, BlogPostPerYear>> blogPostsPerYear;
48+
private int blogPostCount;
4949

50-
protected override async Task OnInitializedAsync()
51-
{
52-
var blogPosts = await Repository.GetAllByProjectionAsync(
53-
p => new BlogPostPerYear(p.Id, p.Slug, p.Title, p.UpdatedDate),
54-
p => p.IsPublished);
55-
blogPostCount = blogPosts.Count;
56-
blogPostsPerYear = blogPosts
57-
.GroupBy(r => r.UpdatedDate.Year)
58-
.OrderByDescending(r => r.Key)
59-
.ToImmutableArray();
60-
}
50+
protected override async Task OnInitializedAsync()
51+
{
52+
var blogPosts = await Repository.GetAllByProjectionAsync(
53+
p => new BlogPostPerYear(p.Id, p.Slug, p.Title, p.UpdatedDate),
54+
p => p.IsPublished);
55+
blogPostCount = blogPosts.Count;
56+
blogPostsPerYear = blogPosts
57+
.GroupBy(r => r.UpdatedDate.Year)
58+
.OrderByDescending(r => r.Key)
59+
.ToImmutableArray();
60+
}
6161

62-
private sealed record BlogPostPerYear(string Id, string Slug, string Title, DateTime UpdatedDate);
62+
private sealed record BlogPostPerYear(string Id, string Slug, string Title, DateTime UpdatedDate);
6363
}

0 commit comments

Comments
 (0)