浏览代码

Lint fix.

amrita-syn 6 年之前
父节点
当前提交
8ffc1b8501
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-paste-from-office/src/filters/space.js

+ 2 - 2
packages/ckeditor5-paste-from-office/src/filters/space.js

@@ -41,10 +41,10 @@ export function normalizeSpacerunSpans( htmlDocument ) {
 	htmlDocument.querySelectorAll( 'span[style*=spacerun]' ).forEach( el => {
 		// Use `el.childNodes[ 0 ].data.length` instead of `el.innerText.length`. For `el.innerText.length` which
 		// contains spaces mixed with ` ` Edge browser returns incorrect length.
-		const innerTextLength = (el.childNodes &&
+		const innerTextLength = ( el.childNodes &&
 			el.childNodes[ 0 ] &&
 			el.childNodes[ 0 ].data &&
-			el.childNodes[ 0 ].data.length) || 0;
+			el.childNodes[ 0 ].data.length ) || 0;
 
 		el.innerHTML = Array( innerTextLength + 1 ).join( '\u00A0 ' ).substr( 0, innerTextLength );
 	} );