Skip to content

Commit

Permalink
Removed unnecessary callback while rendering a closure. The applicati…
Browse files Browse the repository at this point in the history
…on is responsible for ending the response.
  • Loading branch information
cskr committed Nov 3, 2010
1 parent d40cd50 commit cdd6736
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grasshopper/lib/renderer.js
Expand Up @@ -183,9 +183,7 @@ RequestContext.prototype.render = function(view, useLayout) {
this.response.writeHead(this.status, this.headers);
if(this.request.method != 'HEAD') {
var self = this;
view(function() {
self.response.end();
});
view();
}
} else {
this.model['flash'] = this.flash;
Expand Down

0 comments on commit cdd6736

Please sign in to comment.