summaryrefslogtreecommitdiff
path: root/internal/conv
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2023-02-04 20:48:57 -0500
committerDave Henderson <dhenderson@gmail.com>2023-02-04 21:16:18 -0500
commit6af93cd2bd89d38ade8d9384fe3798aed1a38a65 (patch)
tree5a505a798217963cd8aa89e54767cd1a8d38feea /internal/conv
parent08d70cf321ffede08205594ae4e7633f944647da (diff)
Remove uses of pkg/errors
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'internal/conv')
-rw-r--r--internal/conv/conv.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/conv/conv.go b/internal/conv/conv.go
index d953296c..3b2ca7c7 100644
--- a/internal/conv/conv.go
+++ b/internal/conv/conv.go
@@ -1,9 +1,8 @@
package conv
import (
+ "fmt"
"reflect"
-
- "github.com/pkg/errors"
)
// InterfaceSlice converts an array or slice of any type into an []interface{}
@@ -24,6 +23,6 @@ func InterfaceSlice(slice interface{}) ([]interface{}, error) {
}
return ret, nil
default:
- return nil, errors.Errorf("expected an array or slice, but got a %T", s)
+ return nil, fmt.Errorf("expected an array or slice, but got a %T", s)
}
}