lib/setsuzoku/service/web_service/api_strategy.rb in setsuzoku-0.12.55 vs lib/setsuzoku/service/web_service/api_strategy.rb in setsuzoku-0.12.56
- old
+ new
@@ -114,10 +114,10 @@
# Convert an XML string to a usable hash.
sig { params(xml: String).returns(T::Hash[Symbol, T.untyped])}
def convert_xml_to_hash(xml)
begin
result = Nokogiri::XML(xml)
- return { result.root.name.underscore.to_sym => xml_node_to_hash(result.root)}
+ { result.root.name.underscore.to_sym => xml_node_to_hash(result.root) }
rescue Exception => e
{}
end
end
\ No newline at end of file