fix(finder): followup to #2442, make sure entry is not nil (#2526)

This commit is contained in:
Simon Hauser
2023-05-24 14:13:50 +02:00
committed by GitHub
parent 3f1b57908b
commit 19e8a8ae8b
3 changed files with 12 additions and 4 deletions

View File

@@ -60,7 +60,9 @@ return function(opts)
for line in stdout:iter(true) do
line_num = line_num + 1
local entry = entry_maker(line)
entry.index = line_num
if entry then
entry.index = line_num
end
if process_result(entry) then
return
end