diff options
| author | ruki <[email protected]> | 2021-05-26 23:30:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-26 23:30:14 +0800 |
| commit | 7d1291b310e771c903922ebf4502372c7339c72e (patch) | |
| tree | 8b39b6d7003a0dde5a4718b5267117a39da6ae2f /xmake/modules/core/tools/cl.lua | |
| parent | 569a2d4f828654e042308c82b67b1108de4ef433 (diff) | |
remove some ifelse
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 2 |
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 |
