Skip to content

Commit

Permalink
Merge branch 'v3' into fix_grpc_example
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael authored Jul 7, 2024
2 parents d3c5624 + 2d7a89c commit cc0259f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linters:
enable:
- errorlint
2 changes: 1 addition & 1 deletion pkg/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestServiceErrorUnwrap(t *testing.T) {
func TestAsError(t *testing.T) {
err := MissingFieldError("foo", "bar")
se := asError(err)
if err != se {
if !errors.Is(err, se) {
t.Errorf("got %#v, want %#v", se, err)
}
}

0 comments on commit cc0259f

Please sign in to comment.