summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/mkdir.c
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-09 23:22:44 +0800
committerruki <[email protected]>2025-11-09 23:22:44 +0800
commit831447a51da0b094e08bb047247bf269a6e6cf71 (patch)
treef345e66e3d9882cbb4d49d588c3080d88bc17cd8 /core/src/xmake/os/mkdir.c
parentbf2da8a3d7f04bf5ffcdce8fd4c334d5421d3494 (diff)
format more if-else
Diffstat (limited to 'core/src/xmake/os/mkdir.c')
-rw-r--r--core/src/xmake/os/mkdir.c5
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;
}