mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
remove trailing commas
This commit is contained in:
parent
9997e7c0fd
commit
841e941794
@ -506,7 +506,7 @@ module.exports = function(RED) {
|
||||
message = xml(
|
||||
"message",
|
||||
{ type: type, to: to },
|
||||
xml("body", {}, JSON.stringify(msg)),
|
||||
xml("body", {}, JSON.stringify(msg))
|
||||
);
|
||||
|
||||
}
|
||||
@ -515,14 +515,14 @@ module.exports = function(RED) {
|
||||
message = xml(
|
||||
"message",
|
||||
{ type: type, to: to },
|
||||
xml("body", {}, JSON.stringify(msg.payload)),
|
||||
xml("body", {}, JSON.stringify(msg.payload))
|
||||
);
|
||||
}
|
||||
else {
|
||||
message = xml(
|
||||
"message",
|
||||
{ type: type, to: to },
|
||||
xml("body", {}, msg.payload.toString()),
|
||||
xml("body", {}, msg.payload.toString())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user