Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset authored Jul 21, 2024
1 parent 90ad2e9 commit 137a7a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@
"lint-staged": {
"*.{js,ts,jsx,tsx,css}": "yarn prettier",
"src/**/*.md": "yarn fix-headings"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
2 changes: 1 addition & 1 deletion src/utils/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ exports.generateRssFeed = function () {
`${id}: Blog posts must include an author in the metadata, for RSS feeds`
);
}
if (data.date == null || String(data.date).trim() === '') {
if (data.date == null || data.date.trim() === '') {
throw new Error(
`${id}: Blog posts must include a date in the metadata, for RSS feeds`
);
Expand Down

0 comments on commit 137a7a4

Please sign in to comment.