[Modify] Polish it

This commit is contained in:
sta 2019-06-08 21:43:16 +09:00
parent cfeeb9c9ba
commit 26dadfa133

View File

@ -1544,7 +1544,10 @@ namespace WebSocketSharp
/// </param>
public static bool MaybeUri (this string value)
{
if (value == null || value.Length == 0)
if (value == null)
return false;
if (value.Length == 0)
return false;
var idx = value.IndexOf (':');