[Modify] Polish it

This commit is contained in:
sta 2017-12-25 16:13:00 +09:00
parent 0eabd63700
commit c0502fe4e1

View File

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