From 269276ad6439bc51ffde2a878a42f63d64bd9e92 Mon Sep 17 00:00:00 2001 From: pancsta <155631569+pancsta@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:12:54 +0200 Subject: [PATCH] refac(machine): reorder Eval params --- pkg/machine/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/machine/machine.go b/pkg/machine/machine.go index f0b6226..fe8c5a6 100644 --- a/pkg/machine/machine.go +++ b/pkg/machine/machine.go @@ -1111,7 +1111,7 @@ func (m *Machine) queueMutation(mutationType MutationType, states S, args A) { // ctx: nil context defaults to machine's context. // // Note: usage of Eval is discouraged. -func (m *Machine) Eval(ctx context.Context, fn func(), source string) bool { +func (m *Machine) Eval(source string, fn func(), ctx context.Context) bool { if source == "" { panic("Error: source of eval is required") }