diff options
| author | ruki <[email protected]> | 2025-11-09 23:22:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-09 23:22:44 +0800 |
| commit | 831447a51da0b094e08bb047247bf269a6e6cf71 (patch) | |
| tree | f345e66e3d9882cbb4d49d588c3080d88bc17cd8 /core/src/xmake/os/mkdir.c | |
| parent | bf2da8a3d7f04bf5ffcdce8fd4c334d5421d3494 (diff) | |
format more if-else
Diffstat (limited to 'core/src/xmake/os/mkdir.c')
| -rw-r--r-- | core/src/xmake/os/mkdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/xmake/os/mkdir.c b/core/src/xmake/os/mkdir.c index 19507b5aa..9f8b3399d 100644 --- a/core/src/xmake/os/mkdir.c +++ b/core/src/xmake/os/mkdir.c @@ -42,10 +42,11 @@ tb_int_t xm_os_mkdir(lua_State *lua) { // os.mkdir(path) tb_file_info_t info = { 0 }; - if (!tb_file_info(path, &info) || (info.type != TB_FILE_TYPE_DIRECTORY)) + if (!tb_file_info(path, &info) || (info.type != TB_FILE_TYPE_DIRECTORY)) { lua_pushboolean(lua, tb_directory_create(path)); - else + } else { lua_pushboolean(lua, tb_true); + } return 1; } |
