Skip to content

Commit

Permalink
fix: avoid comma at the beginning of list
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jan 2, 2025
1 parent 5cfeb2e commit 335950a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/neotest-golang/lib/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ function M.golist_command()
"go",
"list",
"-f",
[[{
"Dir": "{{.Dir}}",
"ImportPath": "{{.ImportPath}}",
"Name": "{{.Name}}",
"TestGoFiles": [{{range $i, $f := .TestGoFiles}}{{if $i}},{{end}}"{{$f}}"{{end}}],
"XTestGoFiles": [{{range $i, $f := .XTestGoFiles}}{{if $i}},{{end}}"{{$f}}"{{end}}],
"Module": { "GoMod": "{{.Module.GoMod}}" }
[[{
"Dir": "{{.Dir}}",
"ImportPath": "{{.ImportPath}}",
"Name": "{{.Name}}",
"TestGoFiles": [{{range $i, $f := .TestGoFiles}}{{if ne $i 0}},{{end}}"{{$f}}"{{end}}],
"XTestGoFiles": [{{range $i, $f := .XTestGoFiles}}{{if ne $i 0}},{{end}}"{{$f}}"{{end}}],
"Module": { "GoMod": "{{.Module.GoMod}}" }
}]],
}

Expand Down

0 comments on commit 335950a

Please sign in to comment.