summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/getFolderStructure.ts
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-04-18 18:08:43 -0400
committerN. Taylor Mullen <[email protected]>2025-04-18 18:10:57 -0400
commit383b9177848eeefb8c123a7a7ecc0ee391380eea (patch)
tree4b1e06d5e74500ad81a61f9442581648063f86c0 /packages/cli/src/utils/getFolderStructure.ts
parentfa264e42863474a809d06ef569f7ad5388d48072 (diff)
Run `npm run format`
- This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532
Diffstat (limited to 'packages/cli/src/utils/getFolderStructure.ts')
-rw-r--r--packages/cli/src/utils/getFolderStructure.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/cli/src/utils/getFolderStructure.ts b/packages/cli/src/utils/getFolderStructure.ts
index 8192fc96..42d6bbc3 100644
--- a/packages/cli/src/utils/getFolderStructure.ts
+++ b/packages/cli/src/utils/getFolderStructure.ts
@@ -137,7 +137,10 @@ async function readFullStructure(
folderInfo.subFolders.length +
folderInfo.subFolders.reduce((sum, sf) => sum + sf.totalChildren, 0);
} catch (error: unknown) {
- if (isNodeError(error) && (error.code === 'EACCES' || error.code === 'ENOENT')) {
+ if (
+ isNodeError(error) &&
+ (error.code === 'EACCES' || error.code === 'ENOENT')
+ ) {
console.warn(
`Warning: Could not read directory ${folderPath}: ${error.message}`,
);
@@ -345,10 +348,7 @@ export async function getFolderStructure(
}
// 2. Reduce the structure (handles ignored folders specifically)
- const reducedRoot = reduceStructure(
- fullInfo,
- mergedOptions.maxItems,
- );
+ const reducedRoot = reduceStructure(fullInfo, mergedOptions.maxItems);
// 3. Count items in the *reduced* structure for the summary
const rootNodeItselfCount = 0; // Don't count the root node in the items summary