Skip to content

Commit

Permalink
don't need to resolve with
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Aug 7, 2019
1 parent 8d10e16 commit 8d9ecd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/https-proxy/lib/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Server
## https://github.com/cypress-io/cypress/issues/771
_getServerPortForIp: (ip, data) =>
if server = @_ipServers[ip]
return Promise.resolve(server.address().port)
return server.address().port

new Promise (resolve) =>
@_ipServers[ip] = server = https.createServer(data)
Expand All @@ -248,7 +248,6 @@ class Server

resolve(port)


listen: ->
new Promise (resolve) =>
@_onError = @_options.onError
Expand Down

0 comments on commit 8d9ecd4

Please sign in to comment.