Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed May 8, 2024
1 parent cae59c2 commit f5ce3c1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ function filterAsset(asset: GithubReleaseAsset): boolean {
return new RegExp(command.search).test(asset.name);
}

downloadRelease(user as string, repo as string, outputdir as string, filterRelease, filterAsset,
!!command.zipped, !!command.quiet)
.catch((err) => {
console.error(err);
process.exitCode = 1;
}).finally(() => {
process.exit();
});
downloadRelease(
user as string,
repo as string,
outputdir as string,
filterRelease,
filterAsset,
!!command.zipped,
!!command.quiet
).catch((err) => {
console.error(err);
process.exitCode = 1;
}).finally(() => {
process.exit();
});

0 comments on commit f5ce3c1

Please sign in to comment.