https-proxy decaf cleanup

This commit is contained in:
Zach Bloomquist
2020-02-20 12:15:05 -05:00
parent 900286b1fb
commit 433e6d4ed3
16 changed files with 37 additions and 154 deletions
+2 -16
View File
@@ -1,18 +1,6 @@
/* eslint-disable
brace-style,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const _ = require('lodash')
const { agent, allowDestroy, connect } = require('@packages/network')
const debug = require('debug')('cypress:https-proxy')
let fs = require('fs-extra')
const {
getProxyForUrl,
} = require('proxy-from-env')
@@ -23,8 +11,6 @@ const Promise = require('bluebird')
const semaphore = require('semaphore')
const url = require('url')
fs = Promise.promisifyAll(fs)
let sslServers = {}
let sslIpServers = {}
const sslSemaphores = {}
@@ -35,8 +21,8 @@ const SSL_RECORD_TYPES = [
128, 0, // TODO: what do these unknown types mean?
]
let onError = (err) => // these need to be caught to avoid crashing but do not affect anything
{
let onError = (err) => {
// these need to be caught to avoid crashing but do not affect anything
return debug('server error %o', { err })
}