Navigation Menu

Skip to content

Commit

Permalink
Update todos-read-one.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuens committed Oct 11, 2016
1 parent 4af8a63 commit 1b727af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions todos-read-one.js
Expand Up @@ -14,8 +14,7 @@ module.exports = (event, callback) => {
return dynamoDb.get(params, (error, data) => {
if (error) {
callback(error);
} else {
callback(error, data.Item);
}
callback(error, data.Item);
});
};

0 comments on commit 1b727af

Please sign in to comment.