소스 검색

Removed unnecessary condition

Taichi Masuyama 4 년 전
부모
커밋
98972a3d41
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  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);
 };