remove unnecessary closure
This commit is contained in:
parent
b35929dc3a
commit
1bcf9b413f
1 changed files with 1 additions and 3 deletions
|
@ -91,9 +91,7 @@ app.callback = function(){
|
||||||
return function(req, res){
|
return function(req, res){
|
||||||
var ctx = new Context(self, req, res);
|
var ctx = new Context(self, req, res);
|
||||||
|
|
||||||
co.call(ctx, gen)(function(err){
|
co.call(ctx, gen)(ctx.onerror);
|
||||||
if (err) ctx.onerror(err);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue