Skip to content

Commit

Permalink
Fix scanning-in-and-out-spec failing test (#4759)
Browse files Browse the repository at this point in the history
  • Loading branch information
diebas authored Nov 13, 2024
1 parent b8fb57b commit ef425f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/price_policies/time_based_price_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(price_policy)
end

def calculate(start_at, end_at)
return unless start_at < end_at
return if start_at > end_at

strategy_class.new(price_policy, start_at, end_at).calculate
end
Expand Down

0 comments on commit ef425f7

Please sign in to comment.