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(cli): allow returning 0 from controllers #905

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

fahrradflucht
Copy link
Contributor

@fahrradflucht fahrradflucht commented Feb 4, 2021

Closes #889

Instead of checking for falsyness and guarding for false explicitly check if a controller result is null or undefined, set status code and data based on that. This allows to return false, 0 and ''(empty string).

@WoH
Copy link
Collaborator

WoH commented Feb 4, 2021

LGTM, thank you!

@WoH WoH merged commit b01f090 into lukeautry:master Feb 4, 2021
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.

Wrong return
2 participants