itizawa 6 years ago
parent
commit
f335a5c0a7
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/lib/util/path-utils.js

+ 1 - 4
src/lib/util/path-utils.js

@@ -4,10 +4,7 @@
  * @returns {boolean}
  * @returns {boolean}
  */
  */
 const isTopPage = (path) => {
 const isTopPage = (path) => {
-  if (path === '/') {
-    return true;
-  }
-  return false;
+  return path === '/';
 };
 };
 
 
 /**
 /**