From eea6cdd0be89085cf72b8277ea9dba31af07ad3b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 4 Feb 2026 00:48:49 +0800 Subject: fix review issues --- xmake/modules/detect/sdks/find_vstudio.lua | 4 ++-- 1 file 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 -- cgit v1.3.1