From 026b9cc5f8d0e32ae4c476a308ed7b3425f97ca4 Mon Sep 17 00:00:00 2001 From: Karl Isenberg Date: Wed, 9 Feb 2022 13:39:14 -0800 Subject: [PATCH] chore: return exposed types from error matchers --- pkg/testutil/matcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/testutil/matcher.go b/pkg/testutil/matcher.go index 98d4cd5d..10ba4128 100644 --- a/pkg/testutil/matcher.go +++ b/pkg/testutil/matcher.go @@ -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, } @@ -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, }