Skip to content

Commit 02a80c1

Browse files
committed
refactor: return boolean as the function name suggests
1 parent 2898fd0 commit 02a80c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/scanner.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ end
107107

108108
local function check_executable_exists(compiler)
109109
if not compiler or compiler == "" then
110-
return nil
110+
return false
111111
end
112112
local exists = vim.fn.executable(compiler) == 1
113113
return exists

0 commit comments

Comments
 (0)