Explorar o código

Other: Small refactor tweak.

Szymon Cofalik %!s(int64=7) %!d(string=hai) anos
pai
achega
423cce04e0
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  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';
 		}
 	}