do not crash for unwrapErrs return nil (#15456)

fixes #15454
This commit is contained in:
Harshavardhana
2022-08-02 15:10:11 -07:00
committed by GitHub
parent 53a816b17a
commit 026b87e39b

View File

@@ -75,6 +75,9 @@ func unwrapErrs(err error) (leafErr error) {
break
}
}
if uerr == nil {
leafErr = err
}
return leafErr
}