Skip to content

Commit

Permalink
chore(infra): remove extra callback invocation in lambda
Browse files Browse the repository at this point in the history
After #24 there was 2 callback invocations for the base on non-zip files. This removes the redundant call.
  • Loading branch information
ivan-aksamentov committed Mar 7, 2022
1 parent 4c648db commit 51921e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion infra/rewriteToGzip.lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ exports.handler = (event, context, callback) => {
// Here we rewrite the URL to get the corresponding .gz files.
if(!request.uri.endsWith('.zip')) {
request.uri += '.gz'
callback(null, request)
}

callback(null, request)
Expand Down

0 comments on commit 51921e8

Please sign in to comment.