[Modify] Polish it

master
sta 9 years ago
parent b45a6572cd
commit 9ca05f707e

@ -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>

Loading…
Cancel
Save