Skip to content

Commit cc0259f

Browse files
authored
Merge branch 'v3' into fix_grpc_example
2 parents d3c5624 + 2d7a89c commit cc0259f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters:
2+
enable:
3+
- errorlint

pkg/error_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func TestServiceErrorUnwrap(t *testing.T) {
4444
func TestAsError(t *testing.T) {
4545
err := MissingFieldError("foo", "bar")
4646
se := asError(err)
47-
if err != se {
47+
if !errors.Is(err, se) {
4848
t.Errorf("got %#v, want %#v", se, err)
4949
}
5050
}

0 commit comments

Comments
 (0)