mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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.
|
||||
def clear
|
||||
@jar = {}
|
||||
@jar.clear
|
||||
self
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue