mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
chore: reduce any usage in build/ (#270109)
This commit is contained in:
@@ -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}.`);
|
||||
|
||||
Reference in New Issue
Block a user