From 9e1c6609a4c4039fea2cb3ea88b3f045729c9119 Mon Sep 17 00:00:00 2001 From: Duyet Le Date: Tue, 12 Nov 2024 01:40:05 +0700 Subject: [PATCH] fix(blog): unnecessary optional chain on a non-nullish value --- apps/blog/components/year-post.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blog/components/year-post.tsx b/apps/blog/components/year-post.tsx index 559064ed..9524385a 100644 --- a/apps/blog/components/year-post.tsx +++ b/apps/blog/components/year-post.tsx @@ -13,7 +13,7 @@ export interface YearPostProps { } export function YearPost({ year, posts, className }: YearPostProps) { - if (!posts?.length) { + if (!posts.length) { return null }