Skip to content

Commit

Permalink
Remove unnecessary nil check (#1778)
Browse files Browse the repository at this point in the history
Change-Id: I7db3f0828befa3b6e436eff1266df8985ae9b127
  • Loading branch information
alculquicondor committed Feb 28, 2024
1 parent 70242a9 commit 9afd7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (c *Cache) ClusterQueueReadiness(name string) (metav1.ConditionStatus, stri
if cq == nil {
return metav1.ConditionFalse, "NotFound", "ClusterQueue not found"
}
if cq != nil && cq.Status == active {
if cq.Status == active {
return metav1.ConditionTrue, "Ready", "Can admit new workloads"
}
reason, msg := cq.inactiveReason()
Expand Down

0 comments on commit 9afd7e6

Please sign in to comment.