Browse Source

Simplify loop.

Dominik Szczepaniak 6 years ago
parent
commit
d53c5ce0c3
1 changed files with 1 additions and 2 deletions
  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 );
 		}