Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
Remove redundant assignment of variables to themselves.
  • Loading branch information
martincostello committed Feb 11, 2024
1 parent 80a8826 commit 0012be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudfront-folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ exports.handler = (event, context, callback) => {
let path = request.uri;

if (path[path.length - 1] !== '/') {
path = path += "/";
path += "/";
}

path = path += "index.html";
path += "index.html";
request.uri = path;
}

Expand Down

0 comments on commit 0012be7

Please sign in to comment.