From 92eea4ae9f1d47f2ac1ba7d70e00032ffb9f3a12 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 30 May 2024 17:37:04 +0200 Subject: Client: Fix lint error with FSM debug --- client/client.go | 2 +- client/fsm.go | 1 - 2 files changed, 1 insertion(+), 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{ -- cgit v1.2.3