From ef2d7ac99c79e740a80b6a4caccd058481bb696a Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 12 Jan 2020 19:35:07 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpListenerResponse.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerResponse.cs b/websocket-sharp/Net/HttpListenerResponse.cs index ed4b62cd..e81557d4 100644 --- a/websocket-sharp/Net/HttpListenerResponse.cs +++ b/websocket-sharp/Net/HttpListenerResponse.cs @@ -622,8 +622,10 @@ namespace WebSocketSharp.Net return; } - if (value.Length == 0) - throw new ArgumentException ("An empty string.", "value"); + if (value.Length == 0) { + var msg = "An empty string."; + throw new ArgumentException (msg, "value"); + } Uri uri; if (!Uri.TryCreate (value, UriKind.Absolute, out uri))