Skip to content

Commit 7e4ed0e

Browse files
committed
fix: AI auto-fix bugs in hack/releaser/cloudfront-lambda-redirects.js
1 parent 9364252 commit 7e4ed0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hack/releaser/cloudfront-lambda-redirects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.handler = (event, context, callback) => {
2222
}],
2323
},
2424
}
25-
callback(null, response);
25+
callback(null, response); return;
2626
return
2727
}
2828

@@ -71,7 +71,7 @@ exports.handler = (event, context, callback) => {
7171
// Markdown files are flattened: /path/to/page.md not /path/to/page/index.md.
7272
// The homepage markdown output remains at /index.md.
7373
const stripped = uri.replace(/\/$/, '');
74-
uri = stripped === '' ? '/index.md' : stripped + '.md';
74+
uri = stripped === '' ? '/index.md' : `${stripped}.md`;
7575
} else {
7676
// HTML uses directory structure with index.html
7777
if (!uri.endsWith("/")) {

0 commit comments

Comments
 (0)