From 0012be76417dc7183b55c675d1318037e46babc4 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Sun, 11 Feb 2024 07:56:32 +0000 Subject: [PATCH] Remove redundant code Remove redundant assignment of variables to themselves. --- cloudfront-folders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudfront-folders.js b/cloudfront-folders.js index 8532985..72ea663 100644 --- a/cloudfront-folders.js +++ b/cloudfront-folders.js @@ -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; }