fix: empty custom text changes push no events (#8054)

# Which Problems Are Solved

If there is no custom text given, the call ends in an internal error as
no events have to be pushed.

# How the Problems Are Solved

If no events have to be pushed, no trying to push an empty list of
events.

# Additional Changes

No additional changes.

# Additional Context

Closes #6954
This commit is contained in:
Stefan Benz
2024-06-17 14:47:38 +02:00
committed by GitHub
parent 7576f09de6
commit 04fc59f538
8 changed files with 12 additions and 4 deletions

View File

@@ -54,7 +54,6 @@ func TestCommandSide_SetDefaultMessageText(t *testing.T) {
eventstore: eventstoreExpect(
t,
expectFilter(),
expectPush(),
),
},
args: args{