From 536a7d4381cebadfeec7c66b38c149656cf21618 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 30 Mar 2019 16:56:07 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/CookieCollection.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index be66c009..dac87df2 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -502,13 +502,7 @@ namespace WebSocketSharp.Net if (cookie == null) throw new ArgumentNullException ("cookie"); - var idx = searchCookie (cookie); - if (idx == -1) { - _list.Add (cookie); - return; - } - - _list[idx] = cookie; + add (cookie); } ///