1
0
Fork 0
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:
Casey Lee 2020-02-16 22:04:13 -08:00
parent b8589c4e9b
commit 12ac03a755
6 changed files with 23 additions and 14 deletions

View file

@ -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
}