Skip to content

Commit 7380413

Browse files
committed
chore: using existing sliceContains and remove new itemInList method
1 parent 525ee00 commit 7380413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wait.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func IsPodReadyAndRunning(item *unstructured.Unstructured) (bool, string) {
303303
condition := raw.(map[string]interface{})
304304
successStatus := false
305305

306-
if itemInList(successTypes, condition["type"].(string)) {
306+
if sliceContains(successTypes, condition["type"].(string)) {
307307
successStatus = true
308308
}
309309
if successStatus && condition["status"] != "True" {

0 commit comments

Comments
 (0)