Skip to content

Commit

Permalink
fix: it is not inside utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Civitasv committed May 2, 2024
1 parent 7c1e4f0 commit 015be0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/cmake-tools/terminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,11 @@ end

---@param file_name string
local create_tmp_file = function(file_name)
utils.mkdir(utils.get_tmp_dir())
local tmp_file = io.open(utils.get_tmp_file_path(file_name), "w")
tmp_file:close()
utils.mkdir(get_tmp_dir())
local tmp_file = io.open(get_tmp_file_path(file_name), "w")
if tmp_file then
tmp_file:close()
end
end

---@return string
Expand Down

0 comments on commit 015be0e

Please sign in to comment.