mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Removed debugging prints, and added removing of tmpFile
This commit is contained in:
1 parent
86de5ae151
commit
ae34a86cbf
1 file changed
+1
-2
+1
-2
@@ -186,10 +186,8 @@ masterConfigCommands.add(new libCommand.Command({
|
||||
// trim whitespace and put in final array for processing
|
||||
}
|
||||
}
|
||||
print("final", final);
|
||||
for (let element in final) {
|
||||
if (element in final) {
|
||||
print("parsing", element, final[element], ":", typeof final[element]);
|
||||
await libLink.messages.setMasterConfigField.send(control, {
|
||||
field: element,
|
||||
value: final[element],
|
||||
@@ -199,6 +197,7 @@ masterConfigCommands.add(new libCommand.Command({
|
||||
emmiter.emit("dot_on_done");
|
||||
});
|
||||
await events.once(emmiter, "dot_on_done");
|
||||
await fs.unlink(tmpFile);
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user