[Modify] Polish it
This commit is contained in:
parent
0eabd63700
commit
c0502fe4e1
@ -464,14 +464,16 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private static bool tryCreateVersion (string version, out Version result)
|
private static bool tryCreateVersion (string version, out Version result)
|
||||||
{
|
{
|
||||||
|
result = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = new Version (version);
|
result = new Version (version);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
result = null;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user