mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
HTTP::CookieJar#empty?: Optimize.
This commit is contained in:
parent
1731b155e6
commit
c7247cf965
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class HTTP::CookieJar
|
|||
end
|
||||
|
||||
def empty?(url)
|
||||
cookies(url).length > 0 ? false : true
|
||||
cookies(url).empty?
|
||||
end
|
||||
|
||||
def each
|
||||
|
|
|
|||
Loading…
Reference in a new issue