Explorar el Código

Removed outdated comment – there's always a default value now.

Piotrek Koszuliński hace 9 años
padre
commit
905a4ef10c
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      packages/ckeditor5-heading/src/headingcommand.js

+ 1 - 4
packages/ckeditor5-heading/src/headingcommand.js

@@ -142,10 +142,7 @@ export default class HeadingCommand extends Command {
 		const block = findTopmostBlock( position );
 
 		if ( block ) {
-			const format = this._getFormatById( block.name );
-
-			// TODO: What should happen if format is not found?
-			this.value = format;
+			this.value = this._getFormatById( block.name );
 		}
 	}
 }