lib/httpx/transcoder.rb in httpx-1.1.5 vs lib/httpx/transcoder.rb in httpx-1.2.0

- old
+ new

@@ -3,10 +3,10 @@ module HTTPX module Transcoder module_function def normalize_keys(key, value, cond = nil, &block) - if (cond && cond.call(value)) + if cond && cond.call(value) block.call(key.to_s, value) elsif value.respond_to?(:to_ary) if value.empty? block.call("#{key}[]") else