Skip to content

Commit

Permalink
Add comment on how handlers are called
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jul 9, 2014
1 parent 04afdae commit 6217004
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 6217004

Please sign in to comment.