Преглед на файлове

Code style: move code to one line.

Maciej Gołaszewski преди 6 години
родител
ревизия
1cec5c77c7
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      packages/ckeditor5-restricted-editing/src/restrictededitingexceptioncommand.js

+ 2 - 4
packages/ckeditor5-restricted-editing/src/restrictededitingexceptioncommand.js

@@ -42,16 +42,14 @@ export default class RestrictedEditingExceptionCommand extends Command {
 					writer.setSelectionAttribute( 'restrictedEditingException', valueToSet );
 				} else {
 					const isSameException = value => value.item.getAttribute( 'restrictedEditingException' ) === this.value;
-					const exceptionStart = selection.focus.getLastMatchingPosition( isSameException,
-						{ direction: 'backward' } );
+					const exceptionStart = selection.focus.getLastMatchingPosition( isSameException, { direction: 'backward' } );
 					const exceptionEnd = selection.focus.getLastMatchingPosition( isSameException );
 					const focus = selection.focus;
 
 					writer.removeSelectionAttribute( 'restrictedEditingException' );
 
 					if ( !( focus.isEqual( exceptionStart ) || focus.isEqual( exceptionEnd ) ) ) {
-						writer.removeAttribute( 'restrictedEditingException', writer.createRange( exceptionStart,
-							exceptionEnd ) );
+						writer.removeAttribute( 'restrictedEditingException', writer.createRange( exceptionStart, exceptionEnd ) );
 					}
 				}
 			} else {