Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 571e245

Browse files
committed
clarity
1 parent a76a56d commit 571e245

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/steps/setupRedirects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const setupRedirects = (publishPath) => {
3838

3939
// There may be several redirects with the same route but different targets
4040
const wasRedirectAdded = (redirect) => {
41-
return redirects.find((r) => {
42-
const [route, target] = r.split(" ");
43-
return route === redirect.route && target === redirect.target;
41+
return redirects.find((addedRedirect) => {
42+
const [route, target] = addedRedirect.split(" ");
43+
return redirect.route === route && redirect.target === target;
4444
});
4545
};
4646

0 commit comments

Comments
 (0)