Skip to content

Commit

Permalink
run yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
ori-shalom committed Jul 7, 2023
1 parent 31c02b1 commit c8e6d64
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ function useDefaultCanonicalUrl() {
siteConfig: {url: siteUrl, trailingSlash = false},
} = useDocusaurusContext();
const {pathname} = useLocation();
return siteUrl + useBaseUrl(pathname).replace(/\/+$/, '') + (trailingSlash ? '/' : '');
return (
siteUrl +
useBaseUrl(pathname).replace(/\/+$/, '') +
(trailingSlash ? '/' : '')
);
}

// TODO move to SiteMetadataDefaults or theme-common ?
Expand Down

0 comments on commit c8e6d64

Please sign in to comment.