mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-19 00:54:46 +08:00
fix: typecheck
This commit is contained in:
parent
95e9c8afb5
commit
6977a898ce
@ -243,7 +243,7 @@ function normalizeVersion(tag: string): string {
|
||||
}
|
||||
|
||||
function detectChannel(version: string): UpgradeChannel | null {
|
||||
const parsed = semver.parse(version, { loose: true, includePrerelease: true })
|
||||
const parsed = semver.parse(version, { loose: true })
|
||||
if (!parsed) {
|
||||
return null
|
||||
}
|
||||
@ -375,7 +375,7 @@ function resolveVersionKey(existingKey: string | null, segment: SegmentDefinitio
|
||||
}
|
||||
|
||||
function getBaseVersion(version: string): string | null {
|
||||
const parsed = semver.parse(version, { loose: true, includePrerelease: true })
|
||||
const parsed = semver.parse(version, { loose: true })
|
||||
if (!parsed) {
|
||||
return null
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user