diff --git a/data-driven-dependencies/lib/blogPosts.mjs b/data-driven-dependencies/lib/blogPosts.mjs index f397e7cc..acf45b8e 100644 --- a/data-driven-dependencies/lib/blogPosts.mjs +++ b/data-driven-dependencies/lib/blogPosts.mjs @@ -38,7 +38,6 @@ function generateBlogPost() { export function findBlogPost(id) { const post = blogPosts.find((post) => post.id == id); - return blogPosts.find((post) => post.id == id); return post ? ({ content: post }) : null;