Browse Source

Fixed condition that checks the same twice.

Oskar Wróbel 9 năm trước cách đây
mục cha
commit
894ee5d4eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );
 			}
 		}