Browse Source

clean code

jam411 3 years ago
parent
commit
40712d19fb
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packages/core/src/utils/path-utils.js

+ 3 - 2
packages/core/src/utils/path-utils.js

@@ -136,11 +136,12 @@ export function attachTitleHeader(path) {
 
 /**
  * If the pagePath is top page path, eliminate the pageId from the url path.
+ *
  * @param {string} path
  * @param {string} id
  * @returns {string}
  * @memberof pathUtils
  */
-export const returnPathForURL = (path, id) => {
+export function returnPathForURL(path, id) {
   return path === '/' ? path : addHeadingSlash(id);
-};
+}