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))