Przeglądaj źródła

Removed unnecessary condition

Taichi Masuyama 4 lat temu
rodzic
commit
98972a3d41
1 zmienionych plików z 0 dodań i 4 usunięć
  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
  * @returns boolean
  */
  */
 export const canMoveByPath = (fromPath: string, toPath: string): boolean => {
 export const canMoveByPath = (fromPath: string, toPath: string): boolean => {
-  if (fromPath === toPath) {
-    return false;
-  }
-
   return !isPathAreaOverlap(fromPath, toPath);
   return !isPathAreaOverlap(fromPath, toPath);
 };
 };