From 43a69a570e4827ce2166cdae5b0bbd71e335fe45 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 3 Dec 2025 20:05:42 +1100 Subject: [PATCH] Use `cur_dev` and `min_dev` in comparison `versionLessThan` The constant variables `cur_dev` and `min_dev` were added but never used in the comparison. This change is assuming this was by mistake. Otherwise `cur_dev` and `min_dev` are unused and should be removed. --- common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.js b/common.js index 1f2de44..f0e11da 100644 --- a/common.js +++ b/common.js @@ -172,7 +172,7 @@ function versionLessThan(cur_ver, min_ver) { if (cur.major != min.major) return cur.major < min.major; if (cur.minor != min.minor) return cur.minor < min.minor; if (cur.patch != min.patch) return cur.patch < min.patch; - return cur.dev < min.dev; + return cur_dev < min_dev; } // Returns object with keys 'major', 'minor', 'patch', and 'dev'.