Skip to content

Commit

Permalink
Update todos-update.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuens authored Oct 11, 2016
1 parent 1b727af commit 6d02428
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions todos-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
};

0 comments on commit 6d02428

Please sign in to comment.