feat(analyzer): make sure ReplicaSetStatus has valid result (#1538)

* feat(analyzer): make sure ReplicaSetStatus has valid result
---------

Co-authored-by: Gerard Nguyen <gerard@replicated.com>
This commit is contained in:
Dexter Yan
2024-05-01 09:02:45 +12:00
committed by GitHub
co-authored by Gerard Nguyen
parent c2f72ecd0c
commit cb5db1733a
+4
View File
@@ -101,6 +101,10 @@ func analyzeOneReplicaSetStatus(analyzer *troubleshootv1beta2.ReplicaSetStatus,
}
}
if result == nil {
return nil, nil
}
return []*AnalyzeResult{result}, nil
}