[Modify] Polish it

This commit is contained in:
sta 2021-06-24 20:11:00 +09:00
parent 4b757bb205
commit 7c907396d5

View File

@ -1082,6 +1082,7 @@ namespace WebSocketSharp
internal static string TrimSlashOrBackslashFromEnd (this string value)
{
var ret = value.TrimEnd ('/', '\\');
return ret.Length > 0 ? ret : value[0].ToString ();
}