refactor: use table.concat instead of vim.fn.join

This commit is contained in:
Oleksandr Smirnov 2025-02-26 19:58:19 +02:00
parent 1592502a94
commit 2b80f18360
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ end
---@param path string
---@return string
function utils.readfile_joined(path)
return vim.fn.join(vim.fn.readfile(path), "\n")
return table.concat(vim.fn.readfile(path), "\n")
end
return utils

View file

@ -22,7 +22,7 @@ end
---@param path string
---@return string
function testutils.readfile(path)
return vim.fn.join(vim.fn.readfile(path), "\n")
return table.concat(vim.fn.readfile(path), "\n")
end
---@param fpath string