mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Mitigates Style/FormatString
This commit is contained in:
parent
223c1603ae
commit
00c75591ad
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ module Net
|
|||
end
|
||||
|
||||
def random
|
||||
"%x" % (Time.now.to_i + rand(65535))
|
||||
format "%x", (Time.now.to_i + rand(65535))
|
||||
end
|
||||
|
||||
def request_digest
|
||||
|
|
|
@ -37,7 +37,7 @@ module HTTParty
|
|||
end
|
||||
|
||||
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}>)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue