Skip to content

Commit

Permalink
Update: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mook-as committed Oct 29, 2021
1 parent 30b3a37 commit c0a56a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/update/LonghornProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ export async function hasQueuedUpdate(): Promise<boolean> {
const stagedVersion = semver.parse(cache.release.tag, { loose: true });

if (!currentVersion || !stagedVersion) {
console.log(`Error parsing staged versions: ${ currentVersion } -> ${ stagedVersion }`);
console.log(`Error parsing staged versions: ${ currentVersion ?? '<none>' } -> ${ stagedVersion ?? '<none>' }`);

return false;
}
if (currentVersion.compare(stagedVersion) >= 0) {
if (semver.gte(currentVersion, stagedVersion)) {
console.log(`Staged version ${ stagedVersion } not greater than current version ${ currentVersion }, skipping.`);

return false;
Expand Down

0 comments on commit c0a56a9

Please sign in to comment.