Skip to content

Commit

Permalink
Refactor anonymous function with noop
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Dec 31, 2014
1 parent 0e53f28 commit 8736356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function compression(options) {

// see #8
req.on('close', function(){
res.write = res.end = function(){};
res.write = res.end = noop
});

// flush is noop by default
Expand Down

0 comments on commit 8736356

Please sign in to comment.