Skip to content

Commit

Permalink
chore: return exposed types from error matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkfi committed Feb 15, 2022
1 parent eb749e9 commit 026b9cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/testutil/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func indent(in string, indentation uint) string {
// any error with the same type as the supplied error.
//
// Use with testutil.Equal to handle error comparisons.
func EqualErrorType(err error) equalErrorType {
func EqualErrorType(err error) error {
return equalErrorType{
err: err,
}
Expand Down Expand Up @@ -86,7 +86,7 @@ func (e equalErrorType) Unwrap() error {
// any error with the same Error() as the supplied string value.
//
// Use with testutil.Equal to handle error comparisons.
func EqualErrorString(err string) equalErrorString {
func EqualErrorString(err string) error {
return equalErrorString{
err: err,
}
Expand Down

0 comments on commit 026b9cc

Please sign in to comment.