Skip to content

Commit

Permalink
Fix rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenbinns committed Jan 5, 2024
1 parent bb28d45 commit 9d9e74e
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 9d9e74e

Please sign in to comment.