From 57f30e28e30ffc1fbc5fc8e00ed0a4dc9824844b Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Sun, 9 Aug 2026 19:56:56 +0200 Subject: [PATCH] style(cli): clang-format the uninstall --dir target resolution Ran the format gate before adding --dir rather than after, so the ternary landed unformatted and lint/lint went red. Reformatted with the pinned Homebrew LLVM clang-format; the diff is confined to that block and cli.c still compiles. Signed-off-by: Martin Vogel --- src/cli/cli.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cli/cli.c b/src/cli/cli.c index a8669194c..6f1344817 100644 --- a/src/cli/cli.c +++ b/src/cli/cli.c @@ -10972,12 +10972,10 @@ int cbm_cmd_uninstall(int argc, char **argv) { #else static const char kBinaryLeaf[] = "codebase-memory-mcp"; #endif - int bin_path_length = - requested_bin_dir - ? snprintf(bin_path_storage, sizeof(bin_path_storage), "%s/%s", requested_bin_dir, - kBinaryLeaf) - : snprintf(bin_path_storage, sizeof(bin_path_storage), "%s/.local/bin/%s", home, - kBinaryLeaf); + int bin_path_length = requested_bin_dir ? snprintf(bin_path_storage, sizeof(bin_path_storage), + "%s/%s", requested_bin_dir, kBinaryLeaf) + : snprintf(bin_path_storage, sizeof(bin_path_storage), + "%s/.local/bin/%s", home, kBinaryLeaf); if (bin_path_length <= 0 || (size_t)bin_path_length >= sizeof(bin_path_storage)) { (void)fprintf(stderr, "error: uninstall target path is too long\n"); return CLI_TRUE;