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

fix(gatsby-transformer-remark): Fix unreturned Promise warning #12303

Merged
merged 2 commits into from Mar 5, 2019

Conversation

sidharthachatterjee
Copy link
Contributor

No description provided.

@sidharthachatterjee sidharthachatterjee changed the title Fix unreturned Promise warning fix(gatsby-transformer-remark): Fix unreturned Promise warning Mar 5, 2019
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

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

👍

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.

Should we continue the promise chain with the cache.set instead?

ie delete the promise then return cache.set()

@sidharthachatterjee
Copy link
Contributor Author

@DSchau Does cache.set return a promise? Makes sense to return it then

@DSchau
Copy link
Contributor

DSchau commented Mar 5, 2019

It does, yeah! It should return the resolved value, but since we were returning null, shouldn’t really matter what we return!

@sidharthachatterjee
Copy link
Contributor Author

Yeah, makes sense. Changing that!

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.

Gatsby Preview thanks you 👌

@sidharthachatterjee sidharthachatterjee merged commit 6f8f2c3 into master Mar 5, 2019
@sidharthachatterjee sidharthachatterjee deleted the fix/promise-not-returned branch March 5, 2019 04:40
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.

None yet

3 participants