From be37821ab9dbd88ab4d78805e6e6df228c2426e7 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 23 Nov 2020 21:09:27 -0500 Subject: [PATCH] update.ts: Simplify comparison --- src/node/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/update.ts b/src/node/update.ts index 13ac73c3..a156aad6 100644 --- a/src/node/update.ts +++ b/src/node/update.ts @@ -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 }