mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
skip unsupported platforms
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
b8589c4e9b
commit
12ac03a755
6 changed files with 23 additions and 14 deletions
|
@ -42,7 +42,7 @@ func NewInfoExecutor(format string, args ...interface{}) Executor {
|
|||
|
||||
// NewPipelineExecutor creates a new executor from a series of other executors
|
||||
func NewPipelineExecutor(executors ...Executor) Executor {
|
||||
if executors == nil {
|
||||
if len(executors) == 0 {
|
||||
return func(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue