Skip to content

Commit e171a87

Browse files
committed
fix: follow latests async.nvim changes
1 parent 5464c64 commit e171a87

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lua/refactoring/refactor/inline_var.lua

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,8 @@ function M.inline_var()
6767
async.run(get_definitions),
6868
async.run(get_references),
6969
})
70-
local err3, definitions = unpack(results[1], 1, results[1].n) ---@type string?, refactor.QfItem[]
71-
if err3 then
72-
vim.notify(err3, vim.log.levels.ERROR)
73-
return
74-
end
75-
local err4, references = unpack(results[2], 1, results[2].n) ---@type string?, refactor.QfItem[]
76-
if err4 then
77-
vim.notify(err4, vim.log.levels.ERROR)
78-
return
79-
end
70+
local definitions = unpack(results[1]) ---@type string?, refactor.QfItem[]
71+
local references = unpack(results[2]) ---@type string?, refactor.QfItem[]
8072
if #definitions > 1 then
8173
vim.notify(
8274
"Symbol under cursor has multiple definitions. It can't be inlined",

0 commit comments

Comments
 (0)