mirror of
https://github.com/coder/code-server.git
synced 2024-11-23 20:52:38 +03:00
update.ts: Simplify comparison
This commit is contained in:
parent
f74f1721e6
commit
be37821ab9
@ -75,7 +75,7 @@ export class UpdateProvider {
|
||||
public isLatestVersion(latest: Update): boolean {
|
||||
logger.debug("comparing versions", field("current", version), field("latest", latest.version))
|
||||
try {
|
||||
return latest.version === version || semver.lt(latest.version, version)
|
||||
return semver.lte(latest.version, version)
|
||||
} catch (error) {
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user