From 7fe3d427deab551b718fcef4ff9d77ca1df226b1 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 7 Apr 2018 06:31:54 -0700 Subject: [PATCH] fix: fixed github check --- src/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.ts b/src/github.ts index 08fece68..7e004dcf 100644 --- a/src/github.ts +++ b/src/github.ts @@ -9,7 +9,7 @@ export class GithubUpdater extends Updater { const release = await this.fetchRelease() const version = release.tag_name.split('v')[1] const base = this.base(version) - const asset = release.assets.find((a: any) => true || a.name === `${base}.tar.gz`) + const asset = release.assets.find((a: any) => a.name === `${base}.tar.gz`) if (!asset) throw new Error('release not found') return super.update({url: asset.browser_download_url, version}) }