From 2fbac3f58137b07d6cc7757206b2ec7b5e26f27f Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 13 Nov 2018 19:47:24 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 3f5b4d68..bd032148 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -569,11 +569,8 @@ namespace WebSocketSharp.Net output.WriteByte ((byte) '%'); var i = (int) b; - var idx = i >> 4; - output.WriteByte ((byte) _hexChars[idx]); - - idx = i & 0x0F; - output.WriteByte ((byte) _hexChars[idx]); + output.WriteByte ((byte) _hexChars[i >> 4]); + output.WriteByte ((byte) _hexChars[i & 0x0F]); } private static byte[] urlEncodeToBytes (byte[] bytes, int offset, int count)