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

Improve createPages of blog starter #10781

Merged
merged 3 commits into from
Jan 2, 2019
Merged

Conversation

mottox2
Copy link
Contributor

@mottox2 mottox2 commented Jan 2, 2019

Description

Remove extra promise in starters/blog/gatsby-node.js.

Related Issues

The same fixes is made for these pull requests.

#10357
#10777

`
).then(result => {
if (result.errors) {
console.log(result.errors)
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably don't need to log here since the console will (already) output the thrown error, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. The log is unnecessary so I remove it.

Copy link
Contributor

@DSchau DSchau left a comment

Choose a reason for hiding this comment

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

Looks great; thanks so much for the PR and for staying on top of the linter and fixing the issues :)

We're glad to have you as a contributor!

@DSchau DSchau merged commit 70bb589 into gatsbyjs:master Jan 2, 2019
gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
## Description
Remove extra promise in `starters/blog/gatsby-node.js`.

## Related Issues
The same fixes is made for these pull requests.

gatsbyjs#10357
gatsbyjs#10777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants