summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-18 14:22:29 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-18 14:22:29 +0200
commitb2cd79227d299476b5d7e28cb53434b8e919e15f (patch)
tree349bef385953ff4feac77aa7c6d4d9fa2ed41dd5
parentf905b3815cf5100687b842b658fc0df5acaead1b (diff)
FSM: Ensure that we always return valid JSON
-rw-r--r--internal/fsm/fsm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go
index f719da7..162f3ad 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -218,7 +218,7 @@ func (fsm *FSM) GoTransitionWithData(newState FSMStateID, data string, backgroun
}
func (fsm *FSM) GoTransition(newState FSMStateID) bool {
- return fsm.GoTransitionWithData(newState, "", false)
+ return fsm.GoTransitionWithData(newState, "{}", false)
}
func (fsm *FSM) generateMermaidGraph() string {