[Modify] Polish it

This commit is contained in:
sta 2016-12-25 17:16:08 +09:00
parent b45a6572cd
commit 9ca05f707e

View File

@ -1332,10 +1332,10 @@ namespace WebSocketSharp
/// </param> /// </param>
public static bool IsEnclosedIn (this string value, char c) public static bool IsEnclosedIn (this string value, char c)
{ {
return value != null && return value != null
value.Length > 1 && && value.Length > 1
value[0] == c && && value[0] == c
value[value.Length - 1] == c; && value[value.Length - 1] == c;
} }
/// <summary> /// <summary>