lib/soapy_cake/response.rb in soapy_cake-1.24.1 vs lib/soapy_cake/response.rb in soapy_cake-1.25.1

- old
+ new

@@ -76,10 +76,10 @@ # Don't ask... # As you might imagine, CAKE simply does not return the success element # for this specific request. Also, this is the only request with a tag depth # of 4, not 3 or 5 like ALL OTHER requests. # BTW: There is a 10$ reward if anyone can find a worse designed API. - return true if sax.for_tag(:MediaType).count > 0 + return true if sax.for_tag(:MediaType).count.positive? false end def error_message