[Modify] Polish it
This commit is contained in:
parent
d77475aa0f
commit
88ca7f936d
@ -1084,8 +1084,10 @@ namespace WebSocketSharp.Net
|
|||||||
if (url == null)
|
if (url == null)
|
||||||
throw new ArgumentNullException ("url");
|
throw new ArgumentNullException ("url");
|
||||||
|
|
||||||
if (url.Length == 0)
|
if (url.Length == 0) {
|
||||||
throw new ArgumentException ("An empty string.", "url");
|
var msg = "An empty string.";
|
||||||
|
throw new ArgumentException (msg, "url");
|
||||||
|
}
|
||||||
|
|
||||||
Uri uri;
|
Uri uri;
|
||||||
if (!Uri.TryCreate (url, UriKind.Absolute, out uri))
|
if (!Uri.TryCreate (url, UriKind.Absolute, out uri))
|
||||||
|
Loading…
Reference in New Issue
Block a user