瀏覽代碼

Remove unnecessary constant.

Maciej Gołaszewski 6 年之前
父節點
當前提交
2fabd28389
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/ckeditor5-table/src/converters/table-cell-refresh-post-fixer.js

+ 1 - 3
packages/ckeditor5-table/src/converters/table-cell-refresh-post-fixer.js

@@ -66,9 +66,7 @@ function checkRefresh( tableCell, type ) {
 		return true;
 	}
 
-	const children = Array.from( tableCell.getChildren() );
-
-	const hasInnerParagraph = children.some( child => child.is( 'paragraph' ) );
+	const hasInnerParagraph = Array.from( tableCell.getChildren() ).some( child => child.is( 'paragraph' ) );
 
 	// If there is no paragraph in table cell then the view doesn't require refreshing.
 	if ( !hasInnerParagraph ) {