Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and yangshun committed Nov 24, 2019
1 parent ea6d0c7 commit ab2a1af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/docusaurus-plugin-content-docs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ export default function pluginContentDocs(
// This is what will be passed as props to the UI component
const docsSidebars: DocsSidebar = Object.entries(loadedSidebars).reduce(
(acc: DocsSidebar, [sidebarId, sidebarItems]) => {
acc[sidebarId] = sidebarItems.map(sidebarItem =>
normalizeItem(sidebarItem),
);
acc[sidebarId] = sidebarItems.map(normalizeItem);
return acc;
},
{},
Expand Down

0 comments on commit ab2a1af

Please sign in to comment.