Skip to content

Commit

Permalink
fix: use vim.islist
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed May 21, 2024
1 parent 5caac5c commit 420288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest/types/tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ end
function neotest.Tree._from_list(data, key, parent, nodes)
local node_key
local node
if vim.tbl_islist(data) then
if (vim.islist or vim.tbl_islist)(data) then
local node_data = data[1]
node_key = key(node_data)
local children = {}
Expand Down

0 comments on commit 420288e

Please sign in to comment.