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

a handler function should always return a response #695

Merged
merged 9 commits into from Dec 29, 2023
Merged

Conversation

pmcelhaney
Copy link
Owner

  • always return a response even if it has no content
  • fix the type for random()
  • respond with 500 error if the handler function doesn't return anything
  • changeset for ensuring a handler function always returns a response

Copy link

changeset-bot bot commented Dec 28, 2023

🦋 Changeset detected

Latest commit: 04dd3b0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
counterfact Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link
Collaborator

coveralls commented Dec 28, 2023

Pull Request Test Coverage Report for Build 7358731979

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 82.979%

Totals Coverage Status
Change from base Build 7350662093: 0.06%
Covered Lines: 2583
Relevant Lines: 3182

💛 - Coveralls

@pmcelhaney pmcelhaney merged commit 3b0c9e5 into main Dec 29, 2023
8 checks passed
@pmcelhaney pmcelhaney deleted the no-response-2 branch December 29, 2023 17:58
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

2 participants