From e53c2e2d454a9a6d21358f989e5e99f6d2984653 Mon Sep 17 00:00:00 2001 From: HapiFive <1143910315@qq.com> Date: Wed, 15 May 2024 04:52:09 +0800 Subject: remove loacl var --- xmake/rules/qt/ts/xmake.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/rules/qt/ts/xmake.lua b/xmake/rules/qt/ts/xmake.lua index 3e24319c4..47e6aea5d 100644 --- a/xmake/rules/qt/ts/xmake.lua +++ b/xmake/rules/qt/ts/xmake.lua @@ -33,8 +33,7 @@ rule("qt.ts") -- get source file local lupdate_argv = {"-no-obsolete"} for _, sourcebatch in pairs(target:sourcebatches()) do - local sourcefiles = sourcebatch.sourcefiles - if sourcefiles then + if sourcebatch.sourcefiles then for _, sourcefile in ipairs(sourcebatch.sourcefiles) do table.join2(lupdate_argv, path(sourcefile)) end -- cgit v1.3.1