From 674f362c2a7ae3f9026fa7e519707676a7dad8ee Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 12 May 2026 21:07:59 -0700 Subject: [PATCH] Return if executors length is zero in ParallelExecutor --- act/common/executor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/act/common/executor.go b/act/common/executor.go index 08de6faa..81e98a64 100644 --- a/act/common/executor.go +++ b/act/common/executor.go @@ -98,6 +98,10 @@ func NewErrorExecutor(err error) Executor { // NewParallelExecutor creates a new executor from a parallel of other executors func NewParallelExecutor(parallel int, executors ...Executor) Executor { return func(ctx context.Context) error { + if len(executors) == 0 { + return nil + } + work := make(chan Executor, len(executors)) errs := make(chan error, len(executors))