Skip to content

Commit e1a2501

Browse files
committed
review
1 parent c9c5088 commit e1a2501

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/goanalysis/pkgerrors/parse_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package pkgerrors
22

33
import (
4-
"cmp"
54
"fmt"
65
"testing"
76

@@ -37,7 +36,10 @@ func Test_parseError(t *testing.T) {
3736
pos += fmt.Sprintf(":%d", i.Pos.Column)
3837
}
3938
out := pos
40-
expOut := cmp.Or(c.out, c.in)
39+
expOut := c.out
40+
if expOut == "" {
41+
expOut = c.in
42+
}
4143
assert.Equal(t, expOut, out)
4244

4345
assert.Equal(t, "typecheck", i.FromLinter)

0 commit comments

Comments
 (0)