diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-18 14:22:29 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-18 14:22:29 +0200 |
| commit | b2cd79227d299476b5d7e28cb53434b8e919e15f (patch) | |
| tree | 349bef385953ff4feac77aa7c6d4d9fa2ed41dd5 /internal | |
| parent | f905b3815cf5100687b842b658fc0df5acaead1b (diff) | |
FSM: Ensure that we always return valid JSON
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/fsm/fsm.go | 2 |
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 { |
