8
0
Szymon Cofalik 7 лет назад
Родитель
Сommit
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';
 		}
 	}