Przeglądaj źródła

Remove redundant check in mention post-fixer.

Maciej Gołaszewski 6 lat temu
rodzic
commit
5211ab74d9
1 zmienionych plików z 0 dodań i 4 usunięć
  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;
 
-	if ( !changes.length ) {
-		return;
-	}
-
 	for ( const change of changes ) {
 		// Check text node on current position;
 		const position = change.position;