Skip to content

Commit 8736356

Browse files
committed
Refactor anonymous function with noop
1 parent 0e53f28 commit 8736356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function compression(options) {
5757

5858
// see #8
5959
req.on('close', function(){
60-
res.write = res.end = function(){};
60+
res.write = res.end = noop
6161
});
6262

6363
// flush is noop by default

0 commit comments

Comments
 (0)