Skip to content

Commit

Permalink
fix(blog): unnecessary optional chain on a non-nullish value
Browse files Browse the repository at this point in the history
  • Loading branch information
duyet committed Nov 11, 2024
1 parent 8e23b26 commit 9e1c660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/blog/components/year-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface YearPostProps {
}

export function YearPost({ year, posts, className }: YearPostProps) {
if (!posts?.length) {
if (!posts.length) {
return null
}

Expand Down

0 comments on commit 9e1c660

Please sign in to comment.