diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-13 08:23:01 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-13 13:07:59 +0200 |
| commit | adf59e8c6cdaf050ef9cf09301111e7429ec0c37 (patch) | |
| tree | f3b4f2e09b81417bf9bc8ec6168bf3404da974b0 /internal/fsm | |
| parent | 242903aa810797102b14e27dda988fff7ab833cc (diff) | |
Client + Config + FSM: Simplify file names
Diffstat (limited to 'internal/fsm')
| -rw-r--r-- | internal/fsm/fsm.go | 4 |
1 files changed, 1 insertions, 3 deletions
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) } |
