Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Dec 18, 2023
1 parent d7d8648 commit 7373f0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/tracker/generic/ready_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ func NewResourceStatusIndicator(object *unstructured.Unstructured) (indicator *i
continue
}

knownValues := append(condition.ReadyValues,
append(condition.PendingValues, condition.FailedValues...)...,
)
knownValues := lo.Union(condition.ReadyValues, condition.PendingValues, condition.FailedValues)

if lo.Contains(knownValues, currentValue) {
matchedCondition = condition
Expand Down

0 comments on commit 7373f0d

Please sign in to comment.