Removed debugging prints, and added removing of tmpFile

This commit is contained in:
jake87 committed 2021-11-14 20:54:27 +11:00
1 parent 86de5ae151
commit ae34a86cbf
1 file changed
+1 -2
+1 -2
View File
@@ -186,10 +186,8 @@ masterConfigCommands.add(new libCommand.Command({
// trim whitespace and put in final array for processing // trim whitespace and put in final array for processing
} }
} }
print("final", final);
for (let element in final) { for (let element in final) {
if (element in final) { if (element in final) {
print("parsing", element, final[element], ":", typeof final[element]);
await libLink.messages.setMasterConfigField.send(control, { await libLink.messages.setMasterConfigField.send(control, {
field: element, field: element,
value: final[element], value: final[element],
@@ -199,6 +197,7 @@ masterConfigCommands.add(new libCommand.Command({
emmiter.emit("dot_on_done"); emmiter.emit("dot_on_done");
}); });
await events.once(emmiter, "dot_on_done"); await events.once(emmiter, "dot_on_done");
await fs.unlink(tmpFile);
}, },
})); }));