summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-12 23:00:25 +0800
committerruki <[email protected]>2025-08-12 23:00:25 +0800
commit4f16fd80688304613bdb06e26f8f02bc30183b32 (patch)
tree60802359c995dcc6f1031eba4932eeee6712d527
parentcc8b06a691d69e75dc3c0a605eeccce9c345c556 (diff)
format code
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua
index 750787ec4..2fdce5948 100644
--- a/xmake/core/sandbox/modules/import/core/project/project.lua
+++ b/xmake/core/sandbox/modules/import/core/project/project.lua
@@ -150,8 +150,8 @@ function sandbox_core_project._load_package_rules_for_target(target)
for _, rulename in ipairs(table.wrap(target:get("rules"))) do
local packagename = rulename:match("@(.-)/")
if packagename then
- local pkginfo = project.required_package(packagename)
local ruleinst
+ local pkginfo = project.required_package(packagename)
if pkginfo then
ruleinst = pkginfo:rule(rulename)
if ruleinst then