From 1db3b01a1094d1774a59af448f96f52a5ec2342b Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 23 Aug 2020 04:26:07 -0400 Subject: [PATCH] Stops compacting single files w/ multiple roots --- src/system/array.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/system/array.ts b/src/system/array.ts index d1e70c3..ea8027d 100644 --- a/src/system/array.ts +++ b/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;