chore: Add eslint rule for no-shadow (#6658)
* chore: Add eslint rule for no-shadow * fix
This commit is contained in:
@@ -19,9 +19,9 @@ export default function fetch(
|
||||
): Promise<Response> {
|
||||
// In self-hosted, webhooks support proxying and are also allowed to connect
|
||||
// to internal services, so use fetchWithProxy without the filtering agent.
|
||||
const fetch = env.isCloudHosted ? nodeFetch : fetchWithProxy;
|
||||
const fetchMethod = env.isCloudHosted ? nodeFetch : fetchWithProxy;
|
||||
|
||||
return fetch(url, {
|
||||
return fetchMethod(url, {
|
||||
...init,
|
||||
agent: env.isCloudHosted ? useAgent(url) : undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user