Skip to content

Commit

Permalink
Fix complaints about block-scope declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
yungcomputerchair committed Sep 17, 2024
1 parent 947c231 commit 4503c92
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ function backup() {
}

function patchVersions() {
let current = fs.readJsonSync(versionsPath);
let newDefaults = fs.readJsonSync(
var current = fs.readJsonSync(versionsPath);
var newDefaults = fs.readJsonSync(
path.join(__dirname, "/defaults/versions.json")
);
for (let i = 0; i < newDefaults["versions"].length; i++) {
const newDefault = newDefaults["versions"][i];
let found = false;
for (let j = 0; j < current["versions"].length; j++) {
let version = current["versions"][j];
for (var i = 0; i < newDefaults["versions"].length; i++) {
var newDefault = newDefaults["versions"][i];
var found = false;
for (var j = 0; j < current["versions"].length; j++) {
var version = current["versions"][j];
if (newDefault["name"] === version["name"]) {
current["versions"][j] = newDefault;
found = true;
Expand All @@ -63,15 +63,15 @@ function patchVersions() {
}

function patchServers() {
let current = fs.readJsonSync(serversPath);
let newDefaults = fs.readJsonSync(
var current = fs.readJsonSync(serversPath);
var newDefaults = fs.readJsonSync(
path.join(__dirname, "/defaults/servers.json")
);
for (let i = 0; i < newDefaults["servers"].length; i++) {
const newDefault = newDefaults["servers"][i];
let found = false;
for (let j = 0; j < current["servers"].length; j++) {
let server = current["servers"][j];
for (var i = 0; i < newDefaults["servers"].length; i++) {
var newDefault = newDefaults["servers"][i];
var found = false;
for (var j = 0; j < current["servers"].length; j++) {
var server = current["servers"][j];
if (newDefault["uuid"] === server["uuid"]) {
current["servers"][j] = newDefault;
found = true;
Expand Down

0 comments on commit 4503c92

Please sign in to comment.