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