From f7e4bd0d0ed54572abb46c42be03365d5c58cf2f Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 9 Dec 2024 17:30:09 +0200 Subject: [PATCH] apis/resmgr: golangci-lint fixes. Signed-off-by: Krisztian Litkey --- pkg/apis/resmgr/v1alpha1/expression.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/resmgr/v1alpha1/expression.go b/pkg/apis/resmgr/v1alpha1/expression.go index 3e297fbf5..b7fbb0466 100644 --- a/pkg/apis/resmgr/v1alpha1/expression.go +++ b/pkg/apis/resmgr/v1alpha1/expression.go @@ -46,7 +46,7 @@ func (e *Expression) Validate() error { return exprError("invalid expression, '%s' requires a single value", e.Op) } case Exists, NotExist: - if e.Values != nil && len(e.Values) != 0 { + if len(e.Values) != 0 { return exprError("invalid expression, '%s' does not take any values", e.Op) } @@ -54,7 +54,7 @@ func (e *Expression) Validate() error { case MatchesAny, MatchesNone: case AlwaysTrue: - if e.Values != nil && len(e.Values) != 0 { + if len(e.Values) != 0 { return exprError("invalid expression, '%s' does not take any values", e.Op) }