summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-26 23:30:14 +0800
committerruki <[email protected]>2021-05-26 23:30:14 +0800
commit7d1291b310e771c903922ebf4502372c7339c72e (patch)
tree8b39b6d7003a0dde5a4718b5267117a39da6ae2f /xmake/modules/core/tools/cl.lua
parent569a2d4f828654e042308c82b67b1108de4ef433 (diff)
remove some ifelse
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 46f488815..d95d58e5d 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -466,7 +466,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
end
end
if #lines > 0 then
- local warnings = table.concat(table.slice(lines, 1, ifelse(#lines > 8, 8, #lines)), "\r\n")
+ local warnings = table.concat(table.slice(lines, 1, (#lines > 8 and 8 or #lines)), "\r\n")
if progress.showing_without_scroll() then
print("")
end