mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Remove redundant msg != null checks.
This commit is contained in:
@@ -32,13 +32,11 @@ function DDBOutNode(n) {
|
||||
var ddb = new aws.DynamoDB();
|
||||
|
||||
this.on("input", function(msg) {
|
||||
if (msg != null) {
|
||||
ddb.putItem({ "TableName": this.table,
|
||||
"Item": attrWrapper.wrap(msg.payload) },
|
||||
ddb.putItem({ "TableName": this.table,
|
||||
"Item": attrWrapper.wrap(msg.payload) },
|
||||
function(err, data) {
|
||||
if (err) { util.log(err); }
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("ddb out", DDBOutNode);
|
||||
|
Reference in New Issue
Block a user