lib/httpx/transcoder/body.rb in httpx-0.11.3 vs lib/httpx/transcoder/body.rb in httpx-0.12.0

- old
+ new

@@ -42,14 +42,12 @@ def respond_to_missing?(meth, *args) @raw.respond_to?(meth, *args) || super end def method_missing(meth, *args, &block) - if @raw.respond_to?(meth) - @raw.__send__(meth, *args, &block) - else - super - end + return super unless @raw.respond_to?(meth) + + @raw.__send__(meth, *args, &block) end end def encode(body) Encoder.new(body)