Skip to content

Commit

Permalink
check error because the linter demands it.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed Jan 10, 2024
1 parent 0054d7c commit 81828b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion encoding/wkt/unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -830,10 +830,14 @@ func TestSplitOnComma(t *testing.T) {
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
var results []string
splitOnComma(tc.input, func(s string) error {
err := splitOnComma(tc.input, func(s string) error {
results = append(results, s)
return nil
})
if err != nil {
t.Fatalf("impossible error: %v", err)
}

if !reflect.DeepEqual(tc.expected, results) {
t.Log(tc.input)

Expand Down

0 comments on commit 81828b8

Please sign in to comment.