Explorar el Código

Other: Small refactor tweak.

Szymon Cofalik hace 7 años
padre
commit
423cce04e0
Se han modificado 1 ficheros con 1 adiciones y 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';
 		}
 	}