Browse Source

Code style - inline simple arrow function.

Co-authored-by: Kuba Niegowski <1232187+niegowski@users.noreply.github.com>
Maciej 5 years ago
parent
commit
098b7632e7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      packages/ckeditor5-table/src/tableclipboard.js

+ 1 - 3
packages/ckeditor5-table/src/tableclipboard.js

@@ -283,9 +283,7 @@ function getTableFromContent( content ) {
 function createLocationMap( table, width, height ) {
 	// Create height x width (row x column) two-dimensional table to store cells.
 	const map = new Array( height ).fill( null )
-		.map( () => {
-			return new Array( width ).fill( null );
-		} );
+		.map( () => new Array( width ).fill( null ) );
 
 	for ( const { column, row, cell } of new TableWalker( table ) ) {
 		map[ row ][ column ] = cell;