Parcourir la source

Remove redundant check in mention post-fixer.

Maciej Gołaszewski il y a 6 ans
Parent
commit
5211ab74d9
1 fichiers modifiés avec 0 ajouts et 4 suppressions
  1. 0 4
      packages/ckeditor5-mention/src/mentionediting.js

+ 0 - 4
packages/ckeditor5-mention/src/mentionediting.js

@@ -146,10 +146,6 @@ function removePartialMentionPostFixer( writer, doc, schema ) {
 
 
 	let wasChanged = false;
 	let wasChanged = false;
 
 
-	if ( !changes.length ) {
-		return;
-	}
-
 	for ( const change of changes ) {
 	for ( const change of changes ) {
 		// Check text node on current position;
 		// Check text node on current position;
 		const position = change.position;
 		const position = change.position;