diff --git a/todos-update.js b/todos-update.js index 8297cc2..c7aeced 100644 --- a/todos-update.js +++ b/todos-update.js @@ -17,8 +17,7 @@ module.exports = (event, callback) => { return dynamoDb.put(params, (error, data) => { if (error) { callback(error); - } else { - callback(error, params.Item); } + callback(error, params.Item); }); };