fix formatting

This commit is contained in:
Joe Danziger
2025-05-21 13:00:11 -04:00
parent 6c69522017
commit 1691189687

View File

@@ -118,7 +118,9 @@ export async function rulesDirect(args, log, context = {}) {
// Check what was created
const mcpConfigCreated = mcpConfig ? fs.existsSync(mcpPath) : undefined;
const rulesDirCreated = fs.existsSync(brandRulesDir);
const brandFolderCreated = fs.existsSync(path.join(projectRoot, brandDir));
const brandFolderCreated = fs.existsSync(
path.join(projectRoot, brandDir)
);
const error =
failed > 0 ? `${failed} rule files failed to convert.` : null;
@@ -129,7 +131,11 @@ export async function rulesDirect(args, log, context = {}) {
brandFolderCreated,
skipped: false,
error,
success: (mcpConfig ? mcpConfigCreated : true) && rulesDirCreated && success > 0 && !error
success:
(mcpConfig ? mcpConfigCreated : true) &&
rulesDirCreated &&
success > 0 &&
!error
};
addResults.push(resultObj);
}