Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Nov 8, 2023
2 parents b8fbccb + 69d9446 commit 143006f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eleventy/detail/related.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function getRelatedPosts(posts, tags, related) {
// Find relevant posts with same tags as `related.tags`.
if (related.tags) {
if (!Array.isArray(related.tags))
throw new Error("getRelatedPosts: expected array");
throw new Error('getRelatedPosts: expected array');

for (const post of posts) {
if (finalRelated.size >= numTargetPosts)
Expand Down

0 comments on commit 143006f

Please sign in to comment.