- adjust agent to be undefined instead of an empty object
This commit is contained in:
+1
-1
@@ -1004,7 +1004,7 @@ class ReleaseNotesBuilder {
|
|||||||
}
|
}
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
// check proxy setup for GHES environments
|
// check proxy setup for GHES environments
|
||||||
let agent = {};
|
let agent = undefined;
|
||||||
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY;
|
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY;
|
||||||
if (proxy) {
|
if (proxy) {
|
||||||
agent = new https_proxy_agent_1.HttpsProxyAgent(proxy);
|
agent = new https_proxy_agent_1.HttpsProxyAgent(proxy);
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -43,7 +43,7 @@ export class ReleaseNotesBuilder {
|
|||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
// check proxy setup for GHES environments
|
// check proxy setup for GHES environments
|
||||||
let agent = {}
|
let agent = undefined
|
||||||
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY
|
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY
|
||||||
if (proxy) {
|
if (proxy) {
|
||||||
agent = new HttpsProxyAgent(proxy)
|
agent = new HttpsProxyAgent(proxy)
|
||||||
|
|||||||
Reference in New Issue
Block a user