refactor(pickers): remove additional fileopen (#1154)

unfinished work from #1122
This commit is contained in:
tami5
2021-08-23 10:17:59 +03:00
committed by GitHub
parent d8eeb0e4ac
commit 03c2b8f6bb

View File

@@ -565,10 +565,6 @@ files.tags = function(opts)
local results = {} local results = {}
for _, ctags_file in ipairs(tagfiles) do for _, ctags_file in ipairs(tagfiles) do
local fd = assert(vim.loop.fs_open(vim.fn.expand(ctags_file, true), "r", 438))
local stat = assert(vim.loop.fs_fstat(fd))
assert(vim.loop.fs_close(fd))
for line in Path:new(vim.fn.expand(ctags_file)):iter() do for line in Path:new(vim.fn.expand(ctags_file)):iter() do
results[#results + 1] = line results[#results + 1] = line
end end