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 73559207c7
commit 5b7019cd0b
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
}