Skip to content

Commit

Permalink
refac(machine): reorder Eval params (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Jul 10, 2024
1 parent ab1ee58 commit 6ff6b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 6ff6b7c

Please sign in to comment.