Skip to content

Commit

Permalink
chore: handle nil for pq
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Dec 7, 2024
1 parent 64b17a6 commit 105742e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scrapers/kubernetes/informers.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ func NewQueueItem(obj *unstructured.Unstructured, operation QueueItemOperation)
}

func pqComparator(a, b any) int {
if a == nil || b == nil {
return 0
}

qa := a.(*QueueItem)
qb := b.(*QueueItem)

Expand Down

0 comments on commit 105742e

Please sign in to comment.