mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Use Hash#clear rather than creating a new one.
This commit is contained in:
parent
5f21b364d3
commit
f79387080b
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class HTTP::CookieJar
|
||||||
|
|
||||||
# Clear the cookie jar and return self.
|
# Clear the cookie jar and return self.
|
||||||
def clear
|
def clear
|
||||||
@jar = {}
|
@jar.clear
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue