Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackielii committed Jul 15, 2024
1 parent bd64c99 commit ac97290
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/templ/lspcmd/lsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ func TestDocumentSymbol(t *testing.T) {

func sliceToAnySlice(in []any) ([]any, error) {
b, err := json.Marshal(in)
if err != nil {
return nil, err
}
out := make([]any, 0, len(in))
err = json.Unmarshal(b, &out)
return out, err
Expand Down

0 comments on commit ac97290

Please sign in to comment.