diff options
| author | ruki <[email protected]> | 2021-05-26 23:30:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-26 23:30:44 +0800 |
| commit | 9177f156bb1b70fb7adea5c10b6db22012048769 (patch) | |
| tree | eef35bde44f533987e18666886f8b47a7bca9684 /xmake/modules/lib/detect/features.lua | |
| parent | 7d1291b310e771c903922ebf4502372c7339c72e (diff) | |
remove more ifelse again
Diffstat (limited to 'xmake/modules/lib/detect/features.lua')
| -rw-r--r-- | xmake/modules/lib/detect/features.lua | 2 |
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) |
