Skip to content

Conversation

@javiercejudo
Copy link

This change is backwards compatible. The use case is to make it easier for devs to have different logic depending on the reason a request was aborted.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could just be:

function getRejectReason (reason) {
  return reason || DEFAULT_REASON
}

Copy link
Author

Choose a reason for hiding this comment

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

Someone might want to make the reason 0

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