Added semicolon to fix Prettier

This commit is contained in:
Brian Vaughn
2017-10-22 13:45:07 -07:00
committed by GitHub
parent e21f2ae943
commit 331fd30e59

View File

@@ -127,7 +127,7 @@ exports.createPages = async ({graphql, boundActionCreators}) => {
// A leading "/" is required for redirects to work,
// But multiple leading "/" will break redirects.
// For more context see github.com/reactjs/reactjs.org/pull/194
const toPath = slug.startsWith('/') ? slug : `/${slug}`
const toPath = slug.startsWith('/') ? slug : `/${slug}`;
redirectToSlugMap[fromPath] = slug;
createRedirect({