[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)
|
||||
{
|
||||
result = null;
|
||||
|
||||
try {
|
||||
result = new Version (version);
|
||||
return true;
|
||||
}
|
||||
catch {
|
||||
result = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user