We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fcea6 commit 3cfb56dCopy full SHA for 3cfb56d
examples/2016-10-31/api_backend/src/index.js
@@ -6,13 +6,7 @@ const dynamo = new AWS.DynamoDB.DocumentClient();
6
7
const tableName = process.env.TABLE_NAME;
8
9
-const createResponse = (statusCode, body) => {
10
-
11
- return {
12
- statusCode: statusCode,
13
- body: body
14
- }
15
-};
+const createResponse = (statusCode, body) => ({ statusCode, body });
16
17
exports.get = (event, context, callback) => {
18
0 commit comments