diff --git a/v2/types.go b/v2/types.go index f0db549..d5814db 100644 --- a/v2/types.go +++ b/v2/types.go @@ -309,7 +309,7 @@ func (l *Limits) Validate(vr *ValidationResults) { } } - if l.Times != nil && len(l.Times) > 0 { + if len(l.Times) > 0 { for _, t := range l.Times { t.Validate(vr) } diff --git a/v2/v1compat/types.go b/v2/v1compat/types.go index a1f09fd..25725fc 100644 --- a/v2/v1compat/types.go +++ b/v2/v1compat/types.go @@ -197,7 +197,7 @@ func (l *Limits) Validate(vr *ValidationResults) { } } - if l.Times != nil && len(l.Times) > 0 { + if len(l.Times) > 0 { for _, t := range l.Times { t.Validate(vr) }