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 The Issue #176 #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Solo-steven
Copy link

My solution was to add an if statement to the promise's reject function to detect if the error is truthy or falsy. If is falsy an error object will be passed to the callback.
I also update the snapshots to pass the jest test.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 11, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Can you provide example what do you solve using it?

@Solo-steven
Copy link
Author

Solo-steven commented Oct 11, 2022

@alexander-akait thanks for your reply.

The problem this PR is trying to address is mentioned in issue #176 . I forgot to add the link to the PR message.

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