Skip to content

Commit d3acecc

Browse files
committed
use vim.tbl_isempty
1 parent befc846 commit d3acecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/rescript-tools/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
---@return table|nil
3737
local get_client = function()
3838
local active_client = vim.lsp.get_active_clients({ name = "rescriptls" })
39-
return #active_client > 0 and active_client[1] or nil
39+
return not vim.tbl_isempty(active_client) and active_client[1] or nil
4040
end
4141

4242
---Open file

0 commit comments

Comments
 (0)