Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Oct 29, 2023
1 parent fe09efd commit 568f180
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ const createPagesByType = (postType, allPosts, createPage) => {
* @returns {boolean} whether or not the post's type matches postType
*/
const filterPosts = (post, postType) => {
return post.node.frontmatter.published === true && post.node.frontmatter.type === postType;
return (
post.node.frontmatter.published === true &&
post.node.frontmatter.type === postType
);
};

/**
Expand Down

0 comments on commit 568f180

Please sign in to comment.