()
| 275 | } |
| 276 | |
| 277 | func (e Editable) MilestoneId() (*string, error) { |
| 278 | if !e.Milestone.Edited { |
| 279 | return nil, nil |
| 280 | } |
| 281 | if e.Milestone.Value == noMilestone || e.Milestone.Value == "" { |
| 282 | s := "" |
| 283 | return &s, nil |
| 284 | } |
| 285 | m, err := e.Metadata.MilestoneToID(e.Milestone.Value) |
| 286 | return &m, err |
| 287 | } |
| 288 | |
| 289 | // Clone creates a mostly-shallow copy of Editable suitable for use in parallel |
| 290 | // go routines. Fields that would be mutated will be copied. |
no test coverage detected