From bda3d2784986e0a3fe2df78ec881332e81b54b3b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 18 Jul 2022 14:24:19 +0200 Subject: All: Run Gofumpt formatter --- internal/fsm/fsm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/fsm') diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go index 162f3ad..47ac938 100644 --- a/internal/fsm/fsm.go +++ b/internal/fsm/fsm.go @@ -109,7 +109,7 @@ type FSMTransition struct { } type ( - FSMStates map[FSMStateID]FSMState + FSMStates map[FSMStateID]FSMState ) type FSMState struct { @@ -144,7 +144,7 @@ func (fsm *FSM) Init(name string, callback func(string, string, string), logger REQUEST_CONFIG: FSMState{Transitions: []FSMTransition{{ASK_PROFILE, "Multiple profiles found and no profile chosen"}, {HAS_CONFIG, "Only one profile or profile already chosen"}, {NO_SERVER, "Cancel or Error"}, {OAUTH_STARTED, "Re-authorize"}}}, ASK_PROFILE: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "User chooses profile"}, {NO_SERVER, "Cancel or Error"}, {SEARCH_SERVER, "Cancel or Error"}}}, HAS_CONFIG: FSMState{Transitions: []FSMTransition{{CONNECTING, "OS reports it is trying to connect"}, {REQUEST_CONFIG, "User chooses a new profile"}, {NO_SERVER, "User wants to choose a new server"}}, BackState: NO_SERVER}, - CONNECTING: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "Cancel or Error"}, {CONNECTED, "Done connecting"}}}, + CONNECTING: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "Cancel or Error"}, {CONNECTED, "Done connecting"}}}, CONNECTED: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "OS reports disconnected"}}}, } fsm.Current = DEREGISTERED -- cgit v1.2.3