diff --git a/examples/2016-10-31/api_backend/src/index.js b/examples/2016-10-31/api_backend/src/index.js index b910ffc45..e53321cf1 100644 --- a/examples/2016-10-31/api_backend/src/index.js +++ b/examples/2016-10-31/api_backend/src/index.js @@ -6,13 +6,7 @@ const dynamo = new AWS.DynamoDB.DocumentClient(); const tableName = process.env.TABLE_NAME; -const createResponse = (statusCode, body) => { - - return { - statusCode: statusCode, - body: body - } -}; +const createResponse = (statusCode, body) => ({ statusCode, body }); exports.get = (event, context, callback) => {