* Returns the phase following `current` for a choice, or undefined when `current` * is the last active phase.
(current: SyncPhase, choice: ContentTypeChoice)
| 129 | * is the last active phase. |
| 130 | */ |
| 131 | function nextPhase(current: SyncPhase, choice: ContentTypeChoice): SyncPhase | undefined { |
| 132 | const phases = activePhases(choice) |
| 133 | const idx = phases.indexOf(current) |
| 134 | return idx >= 0 && idx + 1 < phases.length ? phases[idx + 1] : undefined |
| 135 | } |
| 136 | |
| 137 | interface GitLabWikiPage { |
| 138 | slug: string |
no test coverage detected