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

Return promises that resolve to null #71

Merged
merged 1 commit into from
Jun 1, 2018

Conversation

rcjsuen
Copy link
Contributor

@rcjsuen rcjsuen commented Jun 1, 2018

Promise-based code is meant to be chained. Instead of returning null for an asynchronous function, returning a promise that resolves to null would be more intuitive and easier to handle for clients.

Promise-based code is meant to be chained. Instead of returning null
for an asynchronous function, returning a promise that resolves to
null would be more intuitive and easier to handle for clients.

Signed-off-by: Remy Suen <[email protected]>
@coveralls
Copy link

coveralls commented Jun 1, 2018

Coverage Status

Coverage increased (+1.09%) to 68.837% when pulling 846df4f on rcjsuen:null-schema into 02eed70 on redhat-developer:master.

@JPinkney JPinkney merged commit 6fbc00d into redhat-developer:master Jun 1, 2018
@rcjsuen rcjsuen deleted the null-schema branch June 1, 2018 22:14
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.

3 participants