Procházet zdrojové kódy

Changed: removed condition that could not be met - output cannot be array anymore.

Szymon Cofalik před 8 roky
rodič
revize
4cd89607e2
1 změnil soubory, kde provedl 1 přidání a 9 odebrání
  1. 1 9
      packages/ckeditor5-paragraph/src/paragraph.js

+ 1 - 9
packages/ckeditor5-paragraph/src/paragraph.js

@@ -20,8 +20,6 @@ import modelWriter from '@ckeditor/ckeditor5-engine/src/model/writer';
 import buildModelConverter from '@ckeditor/ckeditor5-engine/src/conversion/buildmodelconverter';
 import buildViewConverter from '@ckeditor/ckeditor5-engine/src/conversion/buildviewconverter';
 
-import isArray from '@ckeditor/ckeditor5-utils/src/lib/lodash/isArray';
-
 /**
  * The paragraph feature for the editor.
  * Introduces the `<paragraph>` element in the model which renders as a `<p>` element in the DOM and data.
@@ -210,13 +208,7 @@ function mergeSubsequentParagraphs( evt, data ) {
 		return;
 	}
 
-	let node;
-
-	if ( isArray( data.output ) ) {
-		node = data.output[ 0 ];
-	} else {
-		node = data.output.getChild( 0 );
-	}
+	let node = data.output.getChild( 0 );
 
 	while ( node && node.nextSibling ) {
 		const nextSibling = node.nextSibling;