Explorar o código

Internal: Improved code coverage.

Marek Lewandowski %!s(int64=5) %!d(string=hai) anos
pai
achega
9670fa5038
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 1 - 3
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -67,9 +67,7 @@ export default class RemoveRowCommand extends Command {
 				cellToFocus = getCellToFocus( table, removedRowIndex, columnToFocus );
 			}
 
-			if ( cellToFocus ) {
-				writer.setSelection( writer.createPositionAt( cellToFocus, 0 ) );
-			}
+			writer.setSelection( writer.createPositionAt( cellToFocus, 0 ) );
 		} );
 	}