From adf59e8c6cdaf050ef9cf09301111e7429ec0c37 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 13 Oct 2022 08:23:01 +0200 Subject: Client + Config + FSM: Simplify file names --- internal/fsm/fsm.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/fsm') diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go index 4fc647e..d5957b0 100644 --- a/internal/fsm/fsm.go +++ b/internal/fsm/fsm.go @@ -54,7 +54,6 @@ type FSM struct { } func (fsm *FSM) Init( - name string, current FSMStateID, states map[FSMStateID]FSMState, callback func(FSMStateID, FSMStateID, interface{}), @@ -64,7 +63,6 @@ func (fsm *FSM) Init( ) { fsm.States = states fsm.Current = current - fsm.Name = name fsm.StateCallback = callback fsm.Directory = directory fsm.GetName = nameGen @@ -86,7 +84,7 @@ func (fsm *FSM) HasTransition(check FSMStateID) bool { } func (fsm *FSM) getGraphFilename(extension string) string { - debugPath := path.Join(fsm.Directory, fsm.Name) + debugPath := path.Join(fsm.Directory, "graph") return fmt.Sprintf("%s%s", debugPath, extension) } -- cgit v1.2.3