Skip to content

Commit

Permalink
Merge pull request #17 from aredridel/add-comment
Browse files Browse the repository at this point in the history
Add comment on how handlers are called
  • Loading branch information
totherik committed Jul 10, 2014
2 parents 04afdae + 6217004 commit c28dcd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ exports.create = function create(parent) {

tasks = self.getStack(handler.protocol).map(function (handler) {
if (handler.length < 2) {
// If the handler is single argument, expect its return value to be useful,
// so we wrap it up in continuation-passing style
return function wrapper(input, done) {
var data, error;

Expand Down

0 comments on commit c28dcd3

Please sign in to comment.