mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +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
|
end
|
||||||
|
|
||||||
def empty?(url)
|
def empty?(url)
|
||||||
cookies(url).length > 0 ? false : true
|
cookies(url).empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
def each
|
def each
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue