Skip to content

Commit

Permalink
fix: do not return early
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 10, 2024
1 parent 5cc1e3c commit 1994e36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/neotest-golang/ast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ function M.detect_tests(file_path)
local tree = lib.treesitter.parse_positions(file_path, query, opts)

if options.get().testify == true then
local tree_modified_for_testify =
testify.tree_modification.modify_neotest_tree(tree)
return tree_modified_for_testify
tree = testify.tree_modification.modify_neotest_tree(tree)
end

return tree
Expand Down

0 comments on commit 1994e36

Please sign in to comment.