From 451edbb683559ad469e7d6a149a210b1f07c4bed Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 10 Dec 2019 13:14:06 -0800 Subject: [PATCH] Prettier --- index.js | 1 - test/test.js | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 96408189..aa3021e2 100644 --- a/index.js +++ b/index.js @@ -170,7 +170,6 @@ HttpsProxyAgent.prototype.callback = function connect(req, opts, fn) { socket = new net.Socket(); socket.readable = true; - // save a reference to the concat'd Buffer for the `onsocket` callback buffers = buffered; diff --git a/test/test.js b/test/test.js index ebf0ef4d..c309c812 100644 --- a/test/test.js +++ b/test/test.js @@ -239,12 +239,15 @@ describe('HttpsProxyAgent', function() { process.env.http_proxy || 'http://localhost:' + proxyPort; - const req = http.get({ - agent: new HttpsProxyAgent(proxyUri) - }, function(res) { - assert.equal(407, res.statusCode); - req.abort(); - }); + const req = http.get( + { + agent: new HttpsProxyAgent(proxyUri) + }, + function(res) { + assert.equal(407, res.statusCode); + req.abort(); + } + ); req.on('abort', done); });