提交 9d3683d6 编写于 作者: M Matt Bierner

Use some instead of reduce

上级 0ae3ecbf
......@@ -606,9 +606,9 @@ export class ExtensionEditor extends BaseEditor {
this.renderLocalizations(content, manifest, layout)
];
const isEmpty = !renders.reduce((v, r) => r || v, false);
scrollableContent.scanDomNode();
const isEmpty = !renders.some(x => x);
if (isEmpty) {
append(content, $('p.nocontent')).textContent = localize('noContributions', "No Contributions");
append(this.content, content);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册