(params []WorkspaceBuildParameter, parameterName string)
| 153 | } |
| 154 | |
| 155 | func findBuildParameter(params []WorkspaceBuildParameter, parameterName string) (*WorkspaceBuildParameter, bool) { |
| 156 | if params == nil { |
| 157 | return nil, false |
| 158 | } |
| 159 | |
| 160 | for _, p := range params { |
| 161 | if p.Name == parameterName { |
| 162 | return &p, true |
| 163 | } |
| 164 | } |
| 165 | return nil, false |
| 166 | } |
| 167 | |
| 168 | func parameterValuesAsArray(options []TemplateVersionParameterOption) []string { |
| 169 | var arr []string |
no outgoing calls
no test coverage detected