[tests] remove unused opts.skipTeam (#11650)

I can't find this being used anywhere.
This commit is contained in:
Trek Glowacki
2024-05-23 15:25:04 -05:00
committed by GitHub
parent 5f561f8cfa
commit 866d0c173d
2 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
---
---
[tests] remove unused `opts.skipTeam`

View File

@@ -187,15 +187,12 @@ async function fetchWithAuth(url, opts = {}) {
opts.headers.Authorization = `Bearer ${await fetchCachedToken()}`;
}
if (opts.skipTeam) {
delete opts.skipTeam;
} else {
const { VERCEL_TEAM_ID } = process.env;
const { VERCEL_TEAM_ID } = process.env;
if (VERCEL_TEAM_ID) {
url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`;
}
if (VERCEL_TEAM_ID) {
url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`;
}
return await fetchApi(url, opts);
}