[Modify] Polish it

master
sta 6 years ago
parent 26c764b0d2
commit 9685acf4ab

@ -589,17 +589,17 @@ namespace WebSocketSharp.Net
private bool canAddOrUpdate (Cookie cookie)
{
if (_cookies == null || _cookies.Count == 0)
return true;
var found = findCookie (cookie).ToList ();
if (found.Count == 0)
return true;
var ver = cookie.Version;
foreach (var c in found)
foreach (var c in found) {
if (c.Version == ver)
return true;
}
return false;
}

Loading…
Cancel
Save