mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
[tests] remove unused opts.skipTeam (#11650)
I can't find this being used anywhere.
This commit is contained in:
4
.changeset/cuddly-boats-buy.md
Normal file
4
.changeset/cuddly-boats-buy.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
[tests] remove unused `opts.skipTeam`
|
||||||
@@ -187,15 +187,12 @@ async function fetchWithAuth(url, opts = {}) {
|
|||||||
opts.headers.Authorization = `Bearer ${await fetchCachedToken()}`;
|
opts.headers.Authorization = `Bearer ${await fetchCachedToken()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.skipTeam) {
|
const { VERCEL_TEAM_ID } = process.env;
|
||||||
delete opts.skipTeam;
|
|
||||||
} else {
|
|
||||||
const { VERCEL_TEAM_ID } = process.env;
|
|
||||||
|
|
||||||
if (VERCEL_TEAM_ID) {
|
if (VERCEL_TEAM_ID) {
|
||||||
url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`;
|
url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return await fetchApi(url, opts);
|
return await fetchApi(url, opts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user