Skip to content

Commit

Permalink
Merge pull request #531 from gocardless/fix-rubocop
Browse files Browse the repository at this point in the history
Fix rubocop violations
  • Loading branch information
stephenbinns authored Jan 5, 2024
2 parents bb28d45 + 9d9e74e commit 0bae6a2
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 0bae6a2

Please sign in to comment.