Permalink
Browse files

remove needless duplicate createStream() call

  • Loading branch information...
substack committed Aug 28, 2012
1 parent 5dff71c commit 120100ff5b16c03164b86928c95f921ebc168a22
Showing with 1 addition and 2 deletions.
  1. +1 −2 index.js
View
@@ -15,8 +15,6 @@ module.exports = function (req) {
if (!createStream) return unacceptable();
var stream = createStream();
- stream = createStream();
-
var pipe = stream.pipe;
stream.pipe = function (target) {
if (target && target.writeHead && target.setHeader) {
@@ -70,6 +68,7 @@ function proxyResponse (stream, dst) {
return dst[name].apply(dst, arguments);
}
: function () {
+ // hopefully the return value wasn't important >_<
proxied.push({ name : name, arguments : arguments });
}
;

0 comments on commit 120100f

Please sign in to comment.