Skip to content
This repository was archived by the owner on Oct 31, 2018. It is now read-only.

Commit 92f286f

Browse files
committed
Remove comments
1 parent f27af20 commit 92f286f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lambda/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ exports.handler = function(event, context, callback) {
2323
const height = parseInt(match[3], 10);
2424
const originalKey = match[4];
2525

26-
//Check if requested resolution is allowed
2726
if(ALLOWED_DIMENSIONS.size > 0 && !ALLOWED_DIMENSIONS.has(dimensions)) {
2827
callback(null, {
2928
statusCode: '403',
@@ -33,7 +32,6 @@ exports.handler = function(event, context, callback) {
3332
return;
3433
}
3534

36-
//Get object from S3, resize and store backe to S3
3735
S3.getObject({Bucket: BUCKET, Key: originalKey}).promise()
3836
.then(data => Sharp(data.Body)
3937
.resize(width, height)

0 commit comments

Comments
 (0)