lib/cc/analyzer/measurement_validations/value_validation.rb in codeclimate-0.84.0 vs lib/cc/analyzer/measurement_validations/value_validation.rb in codeclimate-0.85.0

- old
+ new

@@ -1,10 +1,10 @@ module CC module Analyzer module MeasurementValidations class ValueValidation < Validation def valid? - value && value.is_a?(Numeric) + value&.is_a?(Numeric) end def message "Value must be present and numeric" end