aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/join.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/errors/join.go b/src/errors/join.go
index dd50089c29..d0a1bc298e 100644
--- a/src/errors/join.go
+++ b/src/errors/join.go
@@ -28,12 +28,10 @@ func Join(errs ...error) error {
}
if n == 1 {
for _, err := range errs {
- if err != nil {
- if _, ok := err.(interface {
- Unwrap() []error
- }); ok {
- return err
- }
+ if _, ok := err.(interface {
+ Unwrap() []error
+ }); ok {
+ return err
}
}
}