瀏覽代碼

Stops compacting single files w/ multiple roots

main
Eric Amodio 4 年之前
父節點
當前提交
1db3b01a10
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. +1
    -4
      src/system/array.ts

+ 1
- 4
src/system/array.ts 查看文件

@ -174,10 +174,7 @@ export namespace Arrays {
if (!isRoot && children.length === 1) {
const child = children[0];
if (
root.value === undefined &&
(child.value === undefined || canCompact === undefined || canCompact(child.value))
) {
if (child.value === undefined || canCompact?.(child.value)) {
root.name = joinPath(root.name, child.name);
root.relativePath = child.relativePath;
root.children = child.children;

Loading…
取消
儲存