From b7b39203e95cf7a10b07613a273a7b25b39311b3 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 13 Feb 2019 21:25:18 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/Cookie.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 67a7d8e9..6e0af070 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -479,13 +479,8 @@ namespace WebSocketSharp.Net "The value specified for the Port attribute isn't enclosed in double quotes."); int[] ports; - string err; - if (!tryCreatePorts (value, out ports, out err)) { - var msg = String.Format ( - "The value specified for the Port attribute contains an invalid value: {0}", - err - ); - + if (!tryCreatePorts (value, out ports)) { + var msg = "The value specified for the Port attribute contains an invalid value."; throw new CookieException (msg); }