(run Run)
| 4067 | } |
| 4068 | |
| 4069 | func latestRunActivityAt(run Run) time.Time { |
| 4070 | latest := run.QueuedAt |
| 4071 | for _, candidate := range []time.Time{run.ClaimedAt, run.StartedAt, run.EndedAt} { |
| 4072 | if candidate.After(latest) { |
| 4073 | latest = candidate |
| 4074 | } |
| 4075 | } |
| 4076 | return latest |
| 4077 | } |
| 4078 | |
| 4079 | func normalizeOwnership(owner *Ownership) *Ownership { |
| 4080 | if owner == nil { |
no outgoing calls
no test coverage detected