From 9837d324a7c3f5e1c850dadabfd670edad4aa85b Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 14 Nov 2019 05:42:34 +1100 Subject: Update to TypeScript 3.7 (#3275) and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273 --- tools/node_http_proxy.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tools') diff --git a/tools/node_http_proxy.js b/tools/node_http_proxy.js index 75dd5a371..58ba3f930 100644 --- a/tools/node_http_proxy.js +++ b/tools/node_http_proxy.js @@ -14,15 +14,9 @@ http const proxy = http.request(options, proxyRes => { res.writeHead(proxyRes.statusCode, proxyRes.headers); - proxyRes.pipe( - res, - { end: true } - ); + proxyRes.pipe(res, { end: true }); }); - req.pipe( - proxy, - { end: true } - ); + req.pipe(proxy, { end: true }); }) .listen(port); -- cgit v1.2.3