From 9e630daf81d10485206ec136c3e1a07fe065ffeb Mon Sep 17 00:00:00 2001 From: Marak Squires Date: Tue, 25 Oct 2011 06:25:15 -0700 Subject: [PATCH] [minor] Indentation fix --- lib/node-http-proxy/http-proxy.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index bf3c29782..1ff76a644 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -218,14 +218,13 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) { return; } - function ondata(chunk) { - if (res.writable) { - if (false === res.write(chunk) && response.pause) { - response.pause(); - } + if (res.writable) { + if (false === res.write(chunk) && response.pause) { + response.pause(); } } + } response.on('data', ondata);