Undo some formatting changes

This commit is contained in:
J.D. Mallen 2022-08-22 21:02:28 -04:00
parent 50f7880791
commit 9ae7cde840
No known key found for this signature in database
GPG Key ID: 91A7CC9239E54C92

View File

@ -208,12 +208,8 @@ module.exports = function (RED) {
}, 60000); // trigger every 60 secs
this.on("close", function () {
if (tock) {
clearTimeout(tock);
}
if (tick) {
clearInterval(tick);
}
if (tock) { clearTimeout(tock); }
if (tick) { clearInterval(tick); }
});
}
@ -221,9 +217,7 @@ module.exports = function (RED) {
var node = RED.nodes.getNode(req.params.id);
if (node != null) {
try {
node.emit("input", {
payload: "reset"
});
node.emit("input", { payload: "reset" });
res.sendStatus(200);
} catch (err) {
res.sendStatus(500);