mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 17:02:27 +01:00
update.ts: Simplify comparison
This commit is contained in:
parent
f74f1721e6
commit
be37821ab9
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ export class UpdateProvider {
|
||||||
public isLatestVersion(latest: Update): boolean {
|
public isLatestVersion(latest: Update): boolean {
|
||||||
logger.debug("comparing versions", field("current", version), field("latest", latest.version))
|
logger.debug("comparing versions", field("current", version), field("latest", latest.version))
|
||||||
try {
|
try {
|
||||||
return latest.version === version || semver.lt(latest.version, version)
|
return semver.lte(latest.version, version)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue