[Modify] Polish it

This commit is contained in:
sta 2017-03-02 16:07:24 +09:00
parent c48861c79e
commit 64925eaa9e

View File

@ -907,8 +907,8 @@ namespace WebSocketSharp
internal static string TrimEndSlash (this string value) internal static string TrimEndSlash (this string value)
{ {
value = value.TrimEnd ('/'); var ret = value.TrimEnd ('/');
return value.Length > 0 ? value : "/"; return ret.Length > 0 ? ret : "/";
} }
/// <summary> /// <summary>