summaryrefslogtreecommitdiff
path: root/vendor/github.com/google/certificate-transparency-go/x509/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/certificate-transparency-go/x509/error.go')
-rw-r--r--vendor/github.com/google/certificate-transparency-go/x509/error.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/google/certificate-transparency-go/x509/error.go b/vendor/github.com/google/certificate-transparency-go/x509/error.go
index 63360ec8e2..40b7ef7d9f 100644
--- a/vendor/github.com/google/certificate-transparency-go/x509/error.go
+++ b/vendor/github.com/google/certificate-transparency-go/x509/error.go
@@ -163,12 +163,18 @@ func (e *Errors) Fatal() bool {
// Empty indicates whether e has no errors.
func (e *Errors) Empty() bool {
+ if e == nil {
+ return true
+ }
return len(e.Errs) == 0
}
// FirstFatal returns the first fatal error in e, or nil
// if there is no fatal error.
func (e *Errors) FirstFatal() error {
+ if e == nil {
+ return nil
+ }
for _, err := range e.Errs {
if err.Fatal {
return err