mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
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 <martin.vogel.tech@gmail.com>
This commit is contained in:
1 parent
c9b5b39c94
commit
57f30e28e3
1 file changed
+4
-6
+4
-6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user