Skip to content

Commit

Permalink
fix(command): new version info is displayed if no stable version is a…
Browse files Browse the repository at this point in the history
…vailable
  • Loading branch information
c4spar committed Jul 24, 2024
1 parent e9dae18 commit 4b84460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/upgrade/_check_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function checkVersion(cmd: Command<any>): Promise<void> {
const latestVersion = await upgradeCommand.getLatestVersion();
const currentVersion = mainCommand.getVersion();

if (currentVersion === latestVersion) {
if (!currentVersion || currentVersion === latestVersion) {
return;
}
const versionHelpText =
Expand Down

0 comments on commit 4b84460

Please sign in to comment.