Skip to content

Commit 3f35b96

Browse files
committed
[Modify] Polish it
1 parent 68d5303 commit 3f35b96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

websocket-sharp/Net/CookieCollection.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,10 @@ internal void SetOrRemove (CookieCollection cookies)
618618

619619
internal void Sort ()
620620
{
621-
if (_list.Count > 1)
622-
_list.Sort (compareForSort);
621+
if (_list.Count < 2)
622+
return;
623+
624+
_list.Sort (compareForSort);
623625
}
624626

625627
#endregion

0 commit comments

Comments
 (0)