lib/versionaire/version.rb in versionaire-7.2.0 vs lib/versionaire/version.rb in versionaire-7.3.0
- old
+ new
@@ -62,15 +62,15 @@
end
private
def validate
- fail(Errors::InvalidNumber) if to_a.any? { |number| !number.is_a? Integer }
- fail(Errors::NegativeNumber) if to_a.any?(&:negative?)
+ fail Errors::InvalidNumber if to_a.any? { |number| !number.is_a? Integer }
+ fail Errors::NegativeNumber if to_a.any?(&:negative?)
end
def reduce other, action
- to_a.zip(other.to_a).map { |pair| pair.reduce(action) }
+ to_a.zip(other.to_a).map { |pair| pair.reduce action }
end
end
# rubocop:enable Metrics/BlockLength
end