Skip to content

Commit

Permalink
fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdes committed Nov 29, 2024
1 parent b9086f3 commit ed9df06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpx/transcoder/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def json_load(*args); MultiJson.load(*args); end
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
Expand Down

0 comments on commit ed9df06

Please sign in to comment.