diff options
| author | ruki <[email protected]> | 2026-02-04 00:48:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-04 00:48:49 +0800 |
| commit | eea6cdd0be89085cf72b8277ea9dba31af07ad3b (patch) | |
| tree | 2575132b179615d8c71548fb50f547aa344f8331 /xmake/modules/detect/sdks | |
| parent | 3445a14dda3cceb13ead089ecd03387012446cac (diff) | |
fix review issuesvs
Diffstat (limited to 'xmake/modules/detect/sdks')
| -rw-r--r-- | xmake/modules/detect/sdks/find_vstudio.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index be0c08ad8..8a805aae6 100644 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -308,9 +308,9 @@ function _load_vcvarsall_impl(vcvarsall, vsver, arch, opt) local p = line:find('=', 1, true) if p then local name = line:sub(1, p - 1):trim() - if name and #name > 0 then + if #name > 0 then local value = line:sub(p + 1):trim() - if value and #value > 0 then + if #value > 0 then variables[name] = value end end |
