IsEmpty checks if a PipelinePlan is empty
()
| 40 | |
| 41 | // IsEmpty checks if a PipelinePlan is empty |
| 42 | func (plan PipelinePlan) IsEmpty() bool { |
| 43 | if len(plan) == 0 { |
| 44 | return true |
| 45 | } |
| 46 | for _, stage := range plan { |
| 47 | if len(stage) > 0 { |
| 48 | return false |
| 49 | } |
| 50 | } |
| 51 | return true |
| 52 | } |
| 53 | |
| 54 | type Pipeline struct { |
| 55 | common.Model |
no outgoing calls