8
0
Просмотр исходного кода

Remove redundant check in mention post-fixer.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
5211ab74d9
1 измененных файлов с 0 добавлено и 4 удалено
  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;