mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
fix rubocop offenses
This commit is contained in:
parent
b9086f37cf
commit
ed9df06b38
@ -45,7 +45,7 @@ module HTTPX::Transcoder
|
||||
def json_dump(*args); MultiJson.dump(*args); end
|
||||
elsif defined?(Oj)
|
||||
def json_load(response, *args); Oj.load(response.to_s, *args); end
|
||||
def json_dump(obj, options = {}); Oj.dump(obj, {mode: :compat}.merge(options)); end
|
||||
def json_dump(obj, options = {}); Oj.dump(obj, { mode: :compat }.merge(options)); end
|
||||
elsif defined?(Yajl)
|
||||
def json_load(response, *args); Yajl::Parser.new(*args).parse(response.to_s); end
|
||||
def json_dump(*args); Yajl::Encoder.encode(*args); end
|
||||
|
Loading…
x
Reference in New Issue
Block a user