summaryrefslogtreecommitdiff
path: root/core/src/xmake/process/kill.c
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-10 21:00:21 +0800
committerruki <[email protected]>2025-11-10 21:00:21 +0800
commit2c387895657ae13cd717d7f42f5baed5eb028a8e (patch)
tree8f005a8dfc3272e9f027560e5e1b5881a7a8bc70 /core/src/xmake/process/kill.c
parent831447a51da0b094e08bb047247bf269a6e6cf71 (diff)
format more if-else codes in core
Diffstat (limited to 'core/src/xmake/process/kill.c')
-rw-r--r--core/src/xmake/process/kill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/process/kill.c b/core/src/xmake/process/kill.c
index 4859027b4..21cc68149 100644
--- a/core/src/xmake/process/kill.c
+++ b/core/src/xmake/process/kill.c
@@ -39,8 +39,9 @@ tb_int_t xm_process_kill(lua_State *lua) {
tb_assert_and_check_return_val(lua, 0);
// is pointer?
- if (!xm_lua_ispointer(lua, 1))
+ if (!xm_lua_ispointer(lua, 1)) {
return 0;
+ }
// get the process
tb_process_ref_t process = (tb_process_ref_t)xm_lua_topointer(lua, 1);