chore: reduce any usage in build/ (#270109)

This commit is contained in:
Robo
2025-10-07 07:56:36 +09:00
committed by GitHub
parent 26b72210d5
commit fd10f9c207
6 changed files with 15 additions and 13 deletions

View File

@@ -82,8 +82,7 @@ async function fetchUrl(options: IFetchOptions, retries = 10, retryDelay = 1000)
try {
const response = await fetch(`https://api.github.com/repos/Microsoft/vscode-linux-build-agent/releases/tags/v${version}`, {
headers: ghApiHeaders,
// eslint-disable-next-line local/code-no-any-casts
signal: controller.signal as any /* Typings issue with lib.dom.d.ts */
signal: controller.signal
});
if (response.ok && (response.status >= 200 && response.status < 300)) {
console.log(`Fetch completed: Status ${response.status}.`);