From d38f759c631039d11cb490692b5e07b00324ff10 Mon Sep 17 00:00:00 2001 From: Matthias Einwag Date: Wed, 23 Sep 2020 08:24:35 -0700 Subject: Use closure in trailing position and strongly type header map --- editors/code/src/net.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src/net.ts') diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index d6194b63e..cfbe1fd48 100644 --- a/editors/code/src/net.ts +++ b/editors/code/src/net.ts @@ -28,7 +28,7 @@ export async function fetchRelease( log.debug("Issuing request for released artifacts metadata to", requestUrl); - var headers: any = { Accept: "application/vnd.github.v3+json" }; + const headers: Record = { Accept: "application/vnd.github.v3+json" }; if (githubToken != null) { headers.Authorization = "token " + githubToken; } -- cgit v1.2.3