gocardless/statesman — pull request #40 by figwit (2014-04-16 10:37:35+00:00)
Title: Avoid firing potentially expensive guard logic when the transition is invalid anyway.

Execute guard callbacks only if the machine's transition rules dictate that the transition is allowed.