- adjust agent to be undefined instead of an empty object

This commit is contained in:
Mike Penz
2022-08-10 12:20:56 +00:00
committed by GitHub
parent 97db2b0c39
commit e38965eec7
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -1004,7 +1004,7 @@ class ReleaseNotesBuilder {
}
core.endGroup();
// check proxy setup for GHES environments
let agent = {};
let agent = undefined;
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY;
if (proxy) {
agent = new https_proxy_agent_1.HttpsProxyAgent(proxy);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -43,7 +43,7 @@ export class ReleaseNotesBuilder {
core.endGroup()
// check proxy setup for GHES environments
let agent = {}
let agent = undefined
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY
if (proxy) {
agent = new HttpsProxyAgent(proxy)