Skip to content

Commit b2db0d4

Browse files
committed
refactor: reuse core bootstrap state mapping for gate rewind
1 parent 4298fc5 commit b2db0d4

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎internal/app/onboarding/gate_requirements.go‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ func (m *Model) rewindGateFor(target Gate) Gate {
1212
rewind := bootstrap.RewindGate(
1313
target,
1414
def.requirement,
15-
bootstrap.State{
16-
User: m.state.user,
17-
Org: m.state.org,
18-
Account: m.state.account,
19-
Workspace: m.state.workspace,
20-
DDSite: m.state.ddSite,
21-
DDAPIKey: m.state.ddAPIKey,
22-
DDAccount: m.state.ddAccount,
23-
},
15+
m.toCoreState(),
2416
)
2517
return rewind
2618
}

0 commit comments

Comments
 (0)