Skip to content

Commit d846808

Browse files
committed
style: apply clang-format 20
Signed-off-by: Kody <kaidi.shi.1121@gmail.com>
1 parent 87713c1 commit d846808

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎src/cli/cli.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6824,8 +6824,7 @@ int cbm_emit_plugin(const char *out_dir, const char *version) {
68246824
cbm_path_info_t marker_info;
68256825
bool owned = out_info.is_directory && !out_info.is_symlink &&
68266826
cbm_path_info_utf8(marker, &marker_info) == 0 && marker_info.is_regular &&
6827-
!marker_info.is_symlink &&
6828-
emit_marker_is_owned(marker);
6827+
!marker_info.is_symlink && emit_marker_is_owned(marker);
68296828
if (!owned) {
68306829
(void)fprintf(stderr,
68316830
"error: refusing to clear %s: not an emitted plugin directory "

‎src/foundation/compat_fs.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ cbm_path_info_result_t cbm_path_info_utf8(const char *path, cbm_path_info_t *out
803803
}
804804
struct stat state;
805805
if (lstat(path, &state) != 0) {
806-
return errno == ENOENT || errno == ENOTDIR ? CBM_PATH_INFO_MISSING
807-
: CBM_PATH_INFO_ERROR;
806+
return errno == ENOENT || errno == ENOTDIR ? CBM_PATH_INFO_MISSING : CBM_PATH_INFO_ERROR;
808807
}
809808
memset(out, 0, sizeof(*out));
810809
out->is_regular = S_ISREG(state.st_mode);

0 commit comments

Comments
 (0)