Skip to content

Commit

Permalink
chore: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Jul 7, 2022
1 parent b86e558 commit 1458ede
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
14 changes: 4 additions & 10 deletions lua/neotest/client/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,13 @@ function TestRunner:_run_tree(tree, args, adapter)
error(("%s returned no data to run tests"):format(adapter.name))
end
else
spec.strategy = vim.tbl_extend(
"force",
spec.strategy or {},
config.strategies[args.strategy] or {}
)
spec.strategy =
vim.tbl_extend("force", spec.strategy or {}, config.strategies[args.strategy] or {})
if vim.tbl_isempty(spec.env or {}) then
spec.env = nil
end
local process_result = self._processes:run(
self:_create_process_key(adapter.name, position.id),
spec,
args
)
local process_result =
self._processes:run(self:_create_process_key(adapter.name, position.id), spec, args)
results = adapter.results(spec, process_result, tree)
if vim.tbl_isempty(results) then
if #tree:children() ~= 0 then
Expand Down
6 changes: 2 additions & 4 deletions lua/neotest/consumers/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ local function init(client)
end

function BufferDiagnostics:draw_buffer()
local positions = client:get_position(
self.file_path,
{ refresh = false, adapter = self.adapter_id }
)
local positions =
client:get_position(self.file_path, { refresh = false, adapter = self.adapter_id })
if not positions then
return
end
Expand Down

0 comments on commit 1458ede

Please sign in to comment.