aboutsummaryrefslogtreecommitdiff
path: root/src/errors/join.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors/join.go')
-rw-r--r--src/errors/join.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/errors/join.go b/src/errors/join.go
index 08a79867c6..730bf7043c 100644
--- a/src/errors/join.go
+++ b/src/errors/join.go
@@ -27,16 +27,6 @@ func Join(errs ...error) error {
if n == 0 {
return nil
}
- if n == 1 {
- for _, err := range errs {
- if _, ok := err.(interface {
- Unwrap() []error
- }); ok {
- return err
- }
- }
- }
-
e := &joinError{
errs: make([]error, 0, n),
}