lib/peddler/xml_response_parser.rb in peddler-1.6.7 vs lib/peddler/xml_response_parser.rb in peddler-2.0.0
- old
+ new
@@ -16,9 +16,9 @@
def find_data
payload = xml.values.first
found = payload.find { |k, _| k.match(MATCHER) }
- found.last if found
+ found&.last
end
end
end