summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index f2439ab2b..0c9261a07 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -427,7 +427,9 @@ end
-- get the given configuration value of package
function _instance:config(name)
local configs = self:configs()
- return configs and configs[name] or nil
+ if configs then
+ return configs[name]
+ end
end
-- is optional package?