Skip to content

Commit

Permalink
fix: fixed github check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 7, 2018
1 parent cbd2a4f commit 7fe3d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
Expand Down

0 comments on commit 7fe3d42

Please sign in to comment.