Browse Source

Removed unnecessary condition

Taichi Masuyama 4 years ago
parent
commit
98972a3d41
1 changed files with 0 additions and 4 deletions
  1. 0 4
      packages/core/src/utils/page-path-utils.ts

+ 0 - 4
packages/core/src/utils/page-path-utils.ts

@@ -250,9 +250,5 @@ export const isPathAreaOverlap = (pathToTest: string, pathToBeTested: string): b
  * @returns boolean
  */
 export const canMoveByPath = (fromPath: string, toPath: string): boolean => {
-  if (fromPath === toPath) {
-    return false;
-  }
-
   return !isPathAreaOverlap(fromPath, toPath);
 };