소스 검색

Other: Small refactor tweak.

Szymon Cofalik 7 년 전
부모
커밋
423cce04e0
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      packages/ckeditor5-engine/src/model/position.js

+ 1 - 5
packages/ckeditor5-engine/src/model/position.js

@@ -238,11 +238,7 @@ export default class Position {
 				return 'after';
 
 			default:
-				if ( this.path[ result ] < otherPosition.path[ result ] ) {
-					return 'before';
-				} else {
-					return 'after';
-				}
+				return this.path[ result ] < otherPosition.path[ result ] ? 'before' : 'after';
 		}
 	}