lib/ecoportal/api/v1/schema_field.rb in ecoportal-api-0.9.7 vs lib/ecoportal/api/v1/schema_field.rb in ecoportal-api-0.10.0
- old
+ new
@@ -20,14 +20,13 @@
line
when "date"
Date.parse(line) rescue return nil, false
end
end.compact
- if multiple
- return values, true
- else
- return values.first, true
- end
+
+ out = values
+ out = values.first unless multiple
+ [out, true]
end
end
end
end
end