diff options
author | Aleksey Kladov <[email protected]> | 2020-02-18 00:12:29 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-18 00:12:29 +0000 |
commit | 784919aec19be04845d39df1d7ef676afbaa421d (patch) | |
tree | d6d3351f880d6c1d21f1c9807e207c7f52ec8714 /editors/code/src/installation | |
parent | fcca80fb7d1cb11bbedbdc0ab21817db9e4ebee9 (diff) | |
parent | f2e44cfe856a9b96ea24f248eb3ab5af8775481e (diff) |
Merge pull request #3209 from matklad/eslint
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); |