summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-30 17:37:04 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-30 17:37:04 +0200
commit92eea4ae9f1d47f2ac1ba7d70e00032ffb9f3a12 (patch)
treea78132535a33f6af058437b00368c62c79d10107 /client
parenta8e25543c06e856c61930ae015516ddc19087f1a (diff)
Client: Fix lint error with FSM debug
Diffstat (limited to 'client')
-rw-r--r--client/client.go2
-rw-r--r--client/fsm.go1
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{