diff --git a/lib/statesman/callback.rb b/lib/statesman/callback.rb index 9c0623ea..5d9f76c1 100644 --- a/lib/statesman/callback.rb +++ b/lib/statesman/callback.rb @@ -40,11 +40,11 @@ def matches_all_transitions end def matches_from_state(from, to) - (from == self.from && (to.nil? || self.to.empty?)) + from == self.from && (to.nil? || self.to.empty?) end def matches_to_state(from, to) - ((from.nil? || self.from.nil?) && self.to.include?(to)) + (from.nil? || self.from.nil?) && self.to.include?(to) end def matches_both_states(from, to)