diff options
author | Aleksey Kladov <[email protected]> | 2020-02-17 22:42:25 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-17 22:42:25 +0000 |
commit | 07a77ffb351af783df45544447eb1ea88b569540 (patch) | |
tree | eb8892c68378ebf555b57cc11d8ed8f2446284e6 /editors/code/src/installation | |
parent | 326556b09078a398e641dd221ab870ee0fe47f68 (diff) |
Migrate to eslint
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r-- | editors/code/src/installation/fetch_artifact_release_info.ts | 6 |
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); |