Skip to content

Commit

Permalink
fix: update version comparison logic for improved accuracy
Browse files Browse the repository at this point in the history
- Change the comparison operator from NotGTv3 to NotLTv3 for version checking.

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Jan 21, 2025
1 parent f9ade07 commit 9a64d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upgrade/q.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (up option) DoQcadmin() {
up.log.Errorf("fetch latest version err, reason: %v", err)
return
}
if lastVersion == "" || uv.NotGTv3(common.Version, lastVersion) {
if lastVersion == "" || uv.NotLTv3(common.Version, lastVersion) {
up.log.Infof("The current version %s is the latest version", common.Version)
return
}
Expand Down

0 comments on commit 9a64d5a

Please sign in to comment.