Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(plugin-blog): style improvements in blogUtils #5338

Merged
merged 2 commits into from
Aug 11, 2021

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

ESLint caught some useless escapes in the regex. I take this opportunity to also make the code more stylistically sound.

Have you read the Contributing Guidelines on pull requests?

Yep

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 11, 2021
Comment on lines +199 to +200
// Fallback to file create time
return (await fs.stat(blogSourceAbsolute)).birthtime;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a personal taste here, pretending we have no-else-return enabled

@netlify
Copy link

netlify bot commented Aug 11, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 36f929a

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/6113a18a82b5cf0007a674ab

😎 Browse the preview: https://deploy-preview-5338--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Aug 11, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 72
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5338--docusaurus-2.netlify.app/

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
@Josh-Cena Josh-Cena changed the title refactor(plugin-blog): style improvements refactor(plugin-blog): style improvements in blogUtils Aug 11, 2021
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 11, 2021
@slorber
Copy link
Collaborator

slorber commented Aug 11, 2021

👍 thanks

@slorber slorber added pr: maintenance This PR does not produce any behavior differences to end users when upgrading. and removed pr: bug fix This PR fixes a bug in a past release. labels Aug 11, 2021
@slorber slorber merged commit 0c0c141 into facebook:master Aug 11, 2021
@Josh-Cena Josh-Cena deleted the blogutil branch August 11, 2021 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants