浏览代码

removed block

Gildas 7 年之前
父节点
当前提交
a67a5f0746
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/single-file/single-file-core.js

+ 3 - 3
lib/single-file/single-file-core.js

@@ -964,9 +964,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 		}
 
 
 		async processStyleAttributes() {
 		async processStyleAttributes() {
-			return Promise.all(Array.from(this.styles).map(([, declarationList]) => {
-				return DomProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest);
-			}));
+			return Promise.all(Array.from(this.styles).map(([, declarationList]) =>
+				DomProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest)
+			));
 		}
 		}
 
 
 		replaceStyleAttributes() {
 		replaceStyleAttributes() {