Commit 8dd89867 authored by Charlie Getzen's avatar Charlie Getzen

Add check on empty list

Signed-off-by: 's avatarCharlie Getzen <charlie.getzen@procore.com>
parent 9f1a6278
......@@ -563,6 +563,10 @@ func perform(infos Result, fn ResourceActorFunc) error {
}
func batchPerform(infos Result, fn ResourceActorFunc, errs chan<- error) {
if len(infos) == 0 {
return
}
finished := make(chan bool, 10000)
kind := infos[0].Object.GetObjectKind().GroupVersionKind().Kind
counter := 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment