mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Remove outdated comments
This commit is contained in:
1 file changed
+2
-7
+2
-7
@@ -133,7 +133,6 @@ masterConfigCommands.add(new libCommand.Command({
|
|||||||
let allConfigElements = "";
|
let allConfigElements = "";
|
||||||
for (let group of response.serialized_config.groups) {
|
for (let group of response.serialized_config.groups) {
|
||||||
for (let [name, value] of Object.entries(group.fields)) {
|
for (let [name, value] of Object.entries(group.fields)) {
|
||||||
// put quotes around value if it's a string
|
|
||||||
let desc = libConfig.MasterConfig.groups.get(group.name)._definitions.get(name).description;
|
let desc = libConfig.MasterConfig.groups.get(group.name)._definitions.get(name).description;
|
||||||
allConfigElements += `# ${desc}\n`;
|
allConfigElements += `# ${desc}\n`;
|
||||||
// split onto two lines for readability and es-lint
|
// split onto two lines for readability and es-lint
|
||||||
@@ -186,9 +185,7 @@ masterConfigCommands.add(new libCommand.Command({
|
|||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
print(`Attempt to set ${finalIndex} to ${part || String(null)} failed; set back to previous value.`);
|
print(`Attempt to set ${finalIndex} to ${part || String(null)} failed; set back to previous value.`);
|
||||||
print(err);
|
print(err);
|
||||||
// 1. If the string is empty, it's better to just print "" instead of nothing
|
// If the string is empty, it's better to just print "" instead of nothing }
|
||||||
// 2. In my opinion this line is perfectly readable, and no need to rewright it
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emmiter.emit("dot_on_done");
|
emmiter.emit("dot_on_done");
|
||||||
@@ -430,7 +427,6 @@ instanceConfigCommands.add(new libCommand.Command({
|
|||||||
let disallowedList = {"instance.id": 0, "instance.assigned_slave": 0, "factorio.settings": 0};
|
let disallowedList = {"instance.id": 0, "instance.assigned_slave": 0, "factorio.settings": 0};
|
||||||
for (let group of response.serialized_config.groups) {
|
for (let group of response.serialized_config.groups) {
|
||||||
for (let [name, value] of Object.entries(group.fields)) {
|
for (let [name, value] of Object.entries(group.fields)) {
|
||||||
// put quotes around value if it's a string
|
|
||||||
if (`${group.name}.${name}` in disallowedList) {
|
if (`${group.name}.${name}` in disallowedList) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -491,8 +487,7 @@ instanceConfigCommands.add(new libCommand.Command({
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
print(`\n\n\nAttempt to set ${finalIndex} to ${JSON.stringify(part) || String(null)} failed; set back to previous value.`);
|
print(`\n\n\nAttempt to set ${finalIndex} to ${JSON.stringify(part) || String(null)} failed; set back to previous value.`);
|
||||||
// 1. If the string is empty, it's better to just print "" instead of nothing
|
// If the string is empty, it's better to just print "" instead of nothing
|
||||||
// 2. In my opinion this line is perfectly readable, and no need to rewright it
|
|
||||||
print("This message shouldn't normally appear; if the below message does not indicate it");
|
print("This message shouldn't normally appear; if the below message does not indicate it");
|
||||||
print("was a user mistake, please report it to the clustorio devs.");
|
print("was a user mistake, please report it to the clustorio devs.");
|
||||||
// added this because it could be a missed entry in disallowedList
|
// added this because it could be a missed entry in disallowedList
|
||||||
|
|||||||
Reference in new issue
Block a user