From 1378f5922cddb43d7776da60f100520aee0a6c59 Mon Sep 17 00:00:00 2001 From: Neil Twigg Date: Tue, 10 Sep 2024 22:37:40 +0100 Subject: [PATCH] Fix lint errors, probably from new staticcheck version Signed-off-by: Neil Twigg --- v2/types.go | 2 +- v2/v1compat/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }