Skip to content

Commit b83a051

Browse files
committed
refactor: move executable variable to global scope
fix: remove duplicated code line
1 parent 02a80c1 commit b83a051

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/cmake-tools/scanner.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ local function get_compiler_version(compiler)
130130
return version
131131
end
132132

133-
-- Main function to scan for kits
133+
local executables = get_path_executables()
134+
134135
function scanner.scan_for_kits()
135-
local executables = get_path_executables()
136136
local toolchains = discover_toolchains(executables)
137137
local kits = {}
138138

0 commit comments

Comments
 (0)