summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl')
-rw-r--r--xmake/modules/core/tools/cl/parse_include.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/cl/parse_include.lua b/xmake/modules/core/tools/cl/parse_include.lua
index 4ca3803e1..3541c28df 100644
--- a/xmake/modules/core/tools/cl/parse_include.lua
+++ b/xmake/modules/core/tools/cl/parse_include.lua
@@ -90,11 +90,8 @@ end
-- has include note?
function has_include_note(line)
local note = _g.note
- if note then
- if line:startswith(note) then
- return note
- end
- return
+ if note and line:startswith(note) then
+ return note
end
local notes = get_include_notes()