Skip to content

Commit a8283e9

Browse files
committed
chore(mcp): apply clang-format to coverage fix
Signed-off-by: SunneeYang <sunnee.yang@gmail.com>
1 parent b5c89ee commit a8283e9

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

‎src/mcp/mcp.c‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,10 +4242,9 @@ static const char *coverage_status(const cbm_coverage_row_t *rows, int count,
42424242
}
42434243
}
42444244
}
4245-
bool recording_complete =
4246-
recording_status && strcmp(recording_status, "complete") == 0;
4247-
bool truncated_exact_path_verified = exact_path_verified && recording_status &&
4248-
strcmp(recording_status, "truncated") == 0;
4245+
bool recording_complete = recording_status && strcmp(recording_status, "complete") == 0;
4246+
bool truncated_exact_path_verified =
4247+
exact_path_verified && recording_status && strcmp(recording_status, "truncated") == 0;
42494248
if (!generation_matches || (!recording_complete && !truncated_exact_path_verified)) {
42504249
return "coverage_unavailable";
42514250
}
@@ -4363,12 +4362,12 @@ static char *handle_check_index_coverage(cbm_mcp_server_t *srv, const char *args
43634362
bool outside = false;
43644363
const char *freshness = coverage_path_freshness(
43654364
store, project, have_project ? proj.root_path : NULL, rel, &outside);
4366-
bool exact_path_verified = have_meta && meta.hash_records_complete &&
4367-
strcmp(freshness, "metadata_match") == 0;
4368-
const char *status = outside ? "outside_project"
4369-
: coverage_status(rows, row_count, rel, recording_status,
4370-
generation_matches, lookup_ok,
4371-
exact_path_verified);
4365+
bool exact_path_verified =
4366+
have_meta && meta.hash_records_complete && strcmp(freshness, "metadata_match") == 0;
4367+
const char *status =
4368+
outside ? "outside_project"
4369+
: coverage_status(rows, row_count, rel, recording_status,
4370+
generation_matches, lookup_ok, exact_path_verified);
43724371
yyjson_mut_obj_add_strcpy(doc, item, "status", status);
43734372
yyjson_mut_obj_add_strcpy(doc, item, "freshness", freshness);
43744373
yyjson_mut_obj_add_strcpy(doc, item, "recommended_action",

0 commit comments

Comments
 (0)