summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/features.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-26 23:30:44 +0800
committerruki <[email protected]>2021-05-26 23:30:44 +0800
commit9177f156bb1b70fb7adea5c10b6db22012048769 (patch)
treeeef35bde44f533987e18666886f8b47a7bca9684 /xmake/modules/lib/detect/features.lua
parent7d1291b310e771c903922ebf4502372c7339c72e (diff)
remove more ifelse again
Diffstat (limited to 'xmake/modules/lib/detect/features.lua')
-rw-r--r--xmake/modules/lib/detect/features.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/lib/detect/features.lua b/xmake/modules/lib/detect/features.lua
index 19b6067cc..614d8c592 100644
--- a/xmake/modules/lib/detect/features.lua
+++ b/xmake/modules/lib/detect/features.lua
@@ -72,7 +72,7 @@ function main(name, opt)
end
-- detect.tools.xxx.features(opt)?
- _g._checking = ifelse(coroutine_running, key, nil)
+ _g._checking = coroutine_running and key or nil
local features = import("detect.tools." .. tool.name .. ".features", {try = true})
if features then
result = features(opt)