[Modify] Polish it

This commit is contained in:
sta 2021-06-25 19:35:56 +09:00
parent 7c907396d5
commit 94046e1c12

View File

@ -1076,6 +1076,7 @@ namespace WebSocketSharp
internal static string TrimSlashFromEnd (this string value) internal static string TrimSlashFromEnd (this string value)
{ {
var ret = value.TrimEnd ('/'); var ret = value.TrimEnd ('/');
return ret.Length > 0 ? ret : "/"; return ret.Length > 0 ? ret : "/";
} }