lib/dhs/problems/errors.rb in dhs-1.4.0 vs lib/dhs/problems/errors.rb in dhs-1.4.1
- old
+ new
@@ -52,10 +52,10 @@
end
end
end
def messages_from_response(response = nil)
- return {} if !response || !response.body.is_a?(String) || response.body.length.zero?
+ return {} if !response || !response.body.is_a?(String) || response.body.empty?
json = JSON.parse(response.body)
parse_messages(json)
end
def message_from_response(response = nil)