Skip to content

Commit

Permalink
fix(client): empty env check on nil
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Jun 24, 2022
1 parent 6e235a4 commit c059b3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neotest/client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ function NeotestClient:_run_tree(tree, args, adapter)
spec.strategy or {},
config.strategies[args.strategy] or {}
)
spec.env = vim.tbl_extend("force", spec.env or {}, args.env or {})
if vim.tbl_isempty(spec.env) then
if vim.tbl_isempty(spec.env or {}) then
spec.env = nil
end
local process_result = self._processes:run(
Expand Down

0 comments on commit c059b3d

Please sign in to comment.