diff options
| author | ruki <[email protected]> | 2020-05-13 22:57:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-13 11:45:19 +0800 |
| commit | c18bb57110e3017ecab347165c2609cea1083370 (patch) | |
| tree | 65579f41dbb5d26304917a3e8543dd264e5827d5 /xmake/plugins | |
| parent | 4a5343c40aafa85b5b1683e333b52190f22955a5 (diff) | |
remove some ifelse
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/repo/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/repo/main.lua b/xmake/plugins/repo/main.lua index e9162496d..e873d0f64 100644 --- a/xmake/plugins/repo/main.lua +++ b/xmake/plugins/repo/main.lua @@ -49,7 +49,7 @@ function _add(name, url, branch, is_global) end -- trace - cprint("${color.success}add %s repository(%s): %s%s ok!", ifelse(is_global, "global", "local"), name, url, branch and (" " .. branch) or "") + cprint("${color.success}add %s repository(%s): %s%s ok!", (is_global and "global" or "local"), name, url, branch and (" " .. branch) or "") -- leave environment environment.leave() @@ -68,7 +68,7 @@ function _remove(name, is_global) end -- trace - cprint("${bright}remove %s repository(%s): ok!", ifelse(is_global, "global", "local"), name) + cprint("${bright}remove %s repository(%s): ok!", (is_global and "global" or "local"), name) end -- update repositories @@ -156,7 +156,7 @@ function _clear(is_global) end -- trace - cprint("${color.success}clear %s repositories: ok!", ifelse(is_global, "global", "local")) + cprint("${color.success}clear %s repositories: ok!", (is_global and "global" or "local")) end -- list all repositories |
