Skip to content

Commit

Permalink
apis/resmgr: golangci-lint fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Dec 10, 2024
1 parent 331b1ec commit f7e4bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/resmgr/v1alpha1/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ 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)
}

case In, NotIn:
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)
}

Expand Down

0 comments on commit f7e4bd0

Please sign in to comment.