From 0849cf73e10d7489f2f28c4daa90386894769817 Mon Sep 17 00:00:00 2001 From: manjaroblack Date: Tue, 12 Aug 2025 13:44:32 -0500 Subject: [PATCH] fix: remove redundant error handling for project root detection --- tools/flattener/main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/flattener/main.js b/tools/flattener/main.js index e50f5579..abed992c 100644 --- a/tools/flattener/main.js +++ b/tools/flattener/main.js @@ -127,11 +127,6 @@ program path.join(inputDir, "flattened-codebase.xml"), ); } - } else { - console.error( - "Could not auto-detect a project root and no arguments were provided. Please specify -i/--input and -o/--output.\nRefer to the documentation in the [https://github.com/bmad-code-org/BMAD-METHOD/tree/main?tab=readme-ov-file#codebase-flattener-tool](https://github.com/bmad-code-org/BMAD-METHOD/tree/main?tab=readme-ov-file#codebase-flattener-tool) (ReadMe)", - ); - process.exit(1); } // Ensure output directory exists