Skip to content

Commit

Permalink
Merge branch 'master' into hm-fix-version-autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenbinns authored Jan 5, 2024
2 parents d52af9a + 0bae6a2 commit 660aa7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/statesman/callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 660aa7f

Please sign in to comment.