[优化] 代码优化

This commit is contained in:
ryan
2026-05-31 20:14:19 +08:00
parent edb356f40e
commit ceae693a20
4 changed files with 17 additions and 50 deletions
+2 -2
View File
@@ -751,9 +751,9 @@ func compareVersionInfo(left versionInfo, right versionInfo) int {
if leftNumber > rightNumber {
return 1
}
case leftErr == nil && rightErr != nil:
case leftErr == nil:
return -1
case leftErr != nil && rightErr == nil:
case rightErr == nil:
return 1
default:
if leftPart < rightPart {