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

Make return of response_cb explicit rather than implicit. #479

Merged
merged 1 commit into from
Nov 26, 2014
Merged

Make return of response_cb explicit rather than implicit. #479

merged 1 commit into from
Nov 26, 2014

Conversation

oalders
Copy link
Contributor

@oalders oalders commented Nov 26, 2014

This bit me earlier this week when I wasn't paying enough attention and
included some logic in my call() method after calling response_cb().

There are other explicit returns in the code samples here. I think it
wouldn't hurt to make it obvious that response_cb()'s return value needs
to be returned by the Middleware.

@oalders oalders changed the title Make clear return of response_cb explicit rather than implicit. Make return of response_cb explicit rather than implicit. Nov 26, 2014
This bit me earlier this week when I wasn't paying enough attention and
included some logic in my call() method *after* calling response_cb().

There are other explicit returns in the code samples here.  I think it
wouldn't hurt to make it obvious that response_cb()'s return value needs
to be returned by the Middleware.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 68f96ce on oalders:master into 86ec1d5 on plack:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) when pulling 8b26f3e on oalders:master into 86ec1d5 on plack:master.

miyagawa added a commit that referenced this pull request Nov 26, 2014
Make return of response_cb explicit rather than implicit.
@miyagawa miyagawa merged commit e82b801 into plack:master Nov 26, 2014
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

3 participants