Skip to content

Commit 425e265

Browse files
committed
Fix double declaration in compare-versions-warning
1 parent 60da076 commit 425e265

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/compare-versions-warning.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module.exports = function () {
22
const lastUpdated = "2025-03-28";
33

44
const cv = require("compare-versions");
5-
const lastUpdated = require("../lastUpdated.json").lastUpdated;
65

76
let dateOneMonthAgo = new Date();
87
dateOneMonthAgo.setMonth(new Date().getMonth() - 1);
@@ -12,8 +11,8 @@ module.exports = function () {
1211
.then((response) => response.json())
1312
.then((data) => {
1413
const packageJson = require("../package.json");
15-
var localVersion = packageJson.version;
16-
var remoteVersion = data["dist-tags"].latest;
14+
const localVersion = packageJson.version;
15+
const remoteVersion = data["dist-tags"].latest;
1716
if (cv.compare(localVersion, remoteVersion, "<")) {
1817
console.warn(
1918
`You are using browserlist-config-baseline version: \t${localVersion} \n` +

0 commit comments

Comments
 (0)