findLastValue finds the value from the previous build and returns it, or nil if the parameter had no value in the last build.
(p TemplateVersionParameter)
| 243 | // findLastValue finds the value from the previous build and returns it, or nil if the parameter had no value in the |
| 244 | // last build. |
| 245 | func (r *ParameterResolver) findLastValue(p TemplateVersionParameter) *WorkspaceBuildParameter { |
| 246 | for _, rp := range r.Rich { |
| 247 | if rp.Name == p.Name { |
| 248 | return &rp |
| 249 | } |
| 250 | } |
| 251 | return nil |
| 252 | } |
no outgoing calls
no test coverage detected