Skip to content

Commit

Permalink
Make code more concise
Browse files Browse the repository at this point in the history
  • Loading branch information
katzuv authored Oct 23, 2024
1 parent fdbad1d commit 59f68a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/UpdateChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ export default class UpdateChecker {
let responseString = this.alertOptions[result.response];
if (responseString === "Download") {
if (this.alertDownloadUrl === null) {
await shell.openExternal(`https://github.com/${REPOSITORY}/releases/v${this.latestVersion}`;
} else {
await shell.openExternal(this.alertDownloadUrl);
this.alertDownloadUrl = `https://github.com/${REPOSITORY}/releases/v${this.latestVersion}`;
}
await shell.openExternal(this.alertDownloadUrl);
} else if (responseString === "View Changelog") {
await shell.openExternal("https://github.com/" + REPOSITORY + "/releases");
}
Expand Down

0 comments on commit 59f68a6

Please sign in to comment.