Explorar o código

Fixed condition that checks the same twice.

Oskar Wróbel %!s(int64=9) %!d(string=hai) anos
pai
achega
894ee5d4eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-engine/src/view/writer.js

+ 1 - 1
packages/ckeditor5-engine/src/view/writer.js

@@ -449,7 +449,7 @@ export function clear( range, element ) {
 			} );
 
 			// If it is then create range inside this element.
-			if ( parentElement && parentElement ) {
+			if ( parentElement ) {
 				rangeToRemove = Range.createIn( parentElement );
 			}
 		}