From 0e633fa6e9b465ff2fc8e370ec1e0643a60c3b72 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 1 Feb 2021 21:17:48 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/RequestStream.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/RequestStream.cs b/websocket-sharp/Net/RequestStream.cs index 40381779..bceacfa9 100644 --- a/websocket-sharp/Net/RequestStream.cs +++ b/websocket-sharp/Net/RequestStream.cs @@ -131,8 +131,11 @@ namespace WebSocketSharp.Net throw new ArgumentOutOfRangeException ("offset", msg); } - if (count < 0) - throw new ArgumentOutOfRangeException ("count", "A negative value."); + if (count < 0) { + var msg = "A negative value."; + + throw new ArgumentOutOfRangeException ("count", msg); + } var len = buffer.Length;