From 331fd30e59c05fece503922f2f8954ea1686940d Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 22 Oct 2017 13:45:07 -0700 Subject: [PATCH] Added semicolon to fix Prettier --- gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index a3eece56d..89fc1db8d 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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({