8
0
فهرست منبع

Simplify loop.

Dominik Szczepaniak 6 سال پیش
والد
کامیت
d53c5ce0c3
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      packages/ckeditor5-engine/src/model/operation/transform.js

+ 1 - 2
packages/ckeditor5-engine/src/model/operation/transform.js

@@ -158,9 +158,8 @@ export function transformSets( operationsA, operationsB, options ) {
 	// If one of sets is empty there is simply nothing to transform, so return sets as they are.
 	if ( operationsA.length == 0 || operationsB.length == 0 ) {
 		const originalOperations = new Map();
-		const receivedOperations = operationsA.concat( operationsB );
 
-		for ( const operation of receivedOperations ) {
+		for ( const operation of operationsA.concat( operationsB ) ) {
 			originalOperations.set( operation, operation );
 		}