Skip to content

Commit 75c8279

Browse files
committed
refactor: name loop variable more meaningfull
1 parent 9d46a1e commit 75c8279

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lua/cmake-tools/scanner.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ local function find_toolchain_file(prefix)
4141
return nil
4242
end
4343
local function match_c_compiler(exe)
44-
for _, c_name in ipairs(C_COMPILERS) do
45-
local prefix = exe:match("^(.+%-)" .. c_name .. "$")
44+
for _, compiler_name in ipairs(C_COMPILERS) do
45+
local prefix = exe:match("^(.+%-)" .. compiler_name .. "$")
4646
if prefix then
47-
return prefix, c_name
47+
return prefix, compiler_name
4848
end
49-
if exe == c_name then
50-
return "", c_name
49+
if exe == compiler_name then
50+
return "", compiler_name
5151
end
5252
end
5353
return nil, nil

0 commit comments

Comments
 (0)