소스 검색

clean code

Yuki Takei 3 년 전
부모
커밋
83fce46daa
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      packages/remark-lsx/src/utils/page-node.ts

+ 0 - 5
packages/remark-lsx/src/utils/page-node.ts

@@ -80,11 +80,6 @@ export function generatePageNodeTree(rootPagePath: string, pages: IPageHasId[],
   // return root objects
   const rootNodes: PageNode[] = [];
   Object.keys(pathToNodeMap).forEach((pagePath) => {
-    // exclude '/'
-    if (pagePath === '/') {
-      return;
-    }
-
     const parentPath = getParentPath(pagePath);
 
     // pick up what parent doesn't exist