From 08c29e7ee01c66b3fa349bc3c091ebb2e7bdb594 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 28 Mar 2019 21:27:54 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/CookieCollection.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index 7e01ad42..5f407700 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -486,18 +486,18 @@ namespace WebSocketSharp.Net /// /// is . /// - public void Add (Cookie cookie) + public void Add (Cookie cookie) { if (cookie == null) throw new ArgumentNullException ("cookie"); - var pos = searchCookie (cookie); - if (pos == -1) { + var idx = searchCookie (cookie); + if (idx == -1) { _list.Add (cookie); return; } - _list[pos] = cookie; + _list[idx] = cookie; } ///