diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-30 17:37:04 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-30 17:37:04 +0200 |
| commit | 92eea4ae9f1d47f2ac1ba7d70e00032ffb9f3a12 (patch) | |
| tree | a78132535a33f6af058437b00368c62c79d10107 | |
| parent | a8e25543c06e856c61930ae015516ddc19087f1a (diff) | |
Client: Fix lint error with FSM debug
| -rw-r--r-- | client/client.go | 2 | ||||
| -rw-r--r-- | client/fsm.go | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index 291b190..6a4e665 100644 --- a/client/client.go +++ b/client/client.go @@ -143,7 +143,7 @@ func New(name string, version string, directory string, stateCallback func(FSMSt http.RegisterAgent(userAgentName(name), version) // Initialize the FSM - c.FSM = newFSM(stateCallback, directory, debug) + c.FSM = newFSM(stateCallback, directory) // Debug only if given c.Debug = debug diff --git a/client/fsm.go b/client/fsm.go index 92e4de7..3aaaf69 100644 --- a/client/fsm.go +++ b/client/fsm.go @@ -92,7 +92,6 @@ func GetStateName(s FSMStateID) string { func newFSM( callback func(FSMStateID, FSMStateID, interface{}) bool, directory string, - debug bool, ) fsm.FSM { states := FSMStates{ StateDeregistered: FSMState{ |
