aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-17 22:42:25 +0000
committerAleksey Kladov <[email protected]>2020-02-17 22:42:25 +0000
commit07a77ffb351af783df45544447eb1ea88b569540 (patch)
treeeb8892c68378ebf555b57cc11d8ed8f2446284e6 /editors/code/src/installation
parent326556b09078a398e641dd221ab870ee0fe47f68 (diff)
Migrate to eslint
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r--editors/code/src/installation/fetch_artifact_release_info.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/installation/fetch_artifact_release_info.ts b/editors/code/src/installation/fetch_artifact_release_info.ts
index 7d497057a..71889e82a 100644
--- a/editors/code/src/installation/fetch_artifact_release_info.ts
+++ b/editors/code/src/installation/fetch_artifact_release_info.ts
@@ -14,7 +14,7 @@ export async function fetchArtifactReleaseInfo(
14): Promise<null | ArtifactReleaseInfo> { 14): Promise<null | ArtifactReleaseInfo> {
15 15
16 const repoOwner = encodeURIComponent(repo.owner); 16 const repoOwner = encodeURIComponent(repo.owner);
17 const repoName = encodeURIComponent(repo.name); 17 const repoName = encodeURIComponent(repo.name);
18 18
19 const apiEndpointPath = releaseTag 19 const apiEndpointPath = releaseTag
20 ? `/repos/${repoOwner}/${repoName}/releases/tags/${releaseTag}` 20 ? `/repos/${repoOwner}/${repoName}/releases/tags/${releaseTag}`
@@ -28,8 +28,8 @@ export async function fetchArtifactReleaseInfo(
28 28
29 // FIXME: handle non-ok response 29 // FIXME: handle non-ok response
30 const response: GithubRelease = await fetch(requestUrl, { 30 const response: GithubRelease = await fetch(requestUrl, {
31 headers: { Accept: "application/vnd.github.v3+json" } 31 headers: { Accept: "application/vnd.github.v3+json" }
32 }) 32 })
33 .then(res => res.json()); 33 .then(res => res.json());
34 34
35 const artifact = response.assets.find(artifact => artifact.name === artifactFileName); 35 const artifact = response.assets.find(artifact => artifact.name === artifactFileName);