From 06481639fce5515f1708e23367aab5bfa20f0e53 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 31 Oct 2018 00:32:51 +0800 Subject: fix package:config() --- xmake/core/package/package.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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? -- cgit v1.3.1