1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Apply suggestions from code review

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
y5nw 2025-02-18 07:20:42 +01:00
parent 5b6f9be18c
commit 3a7010dc7f
2 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ local function test_async_job_replacement(cb)
end
local job = core.handle_async(function()
end, function()
return cb("Canceled async job run")
return cb("Canceled async job ran")
end)
if not job:cancel() then
return cb("AsyncJob:cancel sanity check failed")

View file

@ -1,5 +1,5 @@
// Minetest
// SPDX-License-Identifier: LGPL-2.1-or-later/
// Luanti
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "lua_api/l_internal.h"
#include "lua_api/l_async.h"