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 authored and askervin committed Dec 11, 2024
1 parent 6814ace commit 6562f54
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 6562f54

Please sign in to comment.