lib/workato/connector/sdk/schema/field/convertors.rb in workato-connector-sdk-1.2.0 vs lib/workato/connector/sdk/schema/field/convertors.rb in workato-connector-sdk-1.3.0
- old
+ new
@@ -24,18 +24,18 @@
raise ArgumentError, "Cannot find converter '#{builtin_convertor}'."
end
def integer_conversion(value)
- value.try(:is_number?) && value.to_i || value
+ (value.try(:is_number?) && value.to_i) || value
end
def boolean_conversion(value)
value.try(:is_true?)
end
def float_conversion(value)
- value.try(:is_number?) && value.to_f || value
+ (value.try(:is_number?) && value.to_f) || value
end
def item_array_wrap(items)
::Array.wrap(items).presence&.flatten(1)
end