Browse Source

Internal: Minor cleanup.

Marek Lewandowski 5 years ago
parent
commit
1b6a6bbeb6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      packages/ckeditor5-table/src/commands/insertcolumncommand.js

+ 1 - 2
packages/ckeditor5-table/src/commands/insertcolumncommand.js

@@ -79,9 +79,8 @@ export default class InsertColumnCommand extends Command {
 		const table = tableCell.parent.parent;
 
 		const { column } = tableUtils.getCellLocation( tableCell );
-		const insertAt = insertBefore ? column : column + 1;
 
-		tableUtils.insertColumns( table, { columns: 1, at: insertAt } );
+		tableUtils.insertColumns( table, { columns: 1, at: insertBefore ? column : column + 1 } );
 
 		function getRangeContainedElement( range ) {
 			const nodeAfterStart = range.start.nodeAfter;