Skip to content

Commit 3637e4c

Browse files
committed
fix: add function parameter
1 parent 1898714 commit 3637e4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ function cmake.select_build_preset(callback)
864864
end
865865

866866
function cmake.select_build_target(regenerate, callback)
867-
callback = type(callback) == "function" and callback or function() end
867+
callback = type(callback) == "function" and callback or function(_) end
868868
if not (config:has_build_directory()) then
869869
-- configure it
870870
return cmake.generate({ bang = false, fargs = {} }, function(result)

0 commit comments

Comments
 (0)