1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Mitigates Style/FormatString

This commit is contained in:
Thomas Nys 2015-04-18 14:20:26 +02:00
parent 223c1603ae
commit 00c75591ad
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ module Net
end end
def random def random
"%x" % (Time.now.to_i + rand(65535)) format "%x", (Time.now.to_i + rand(65535))
end end
def request_digest def request_digest

View file

@ -37,7 +37,7 @@ module HTTParty
end end
def inspect def inspect
inspect_id = "%x" % (object_id * 2) inspect_id = format "%x", (object_id * 2)
%(#<#{self.class}:0x#{inspect_id} parsed_response=#{parsed_response.inspect}, @response=#{response.inspect}, @headers=#{headers.inspect}>) %(#<#{self.class}:0x#{inspect_id} parsed_response=#{parsed_response.inspect}, @response=#{response.inspect}, @headers=#{headers.inspect}>)
end end