[Modify] Polish it

This commit is contained in:
sta 2020-01-13 22:06:40 +09:00
parent ef2d7ac99c
commit 7284b6f97c

View File

@ -628,8 +628,10 @@ namespace WebSocketSharp.Net
}
Uri uri;
if (!Uri.TryCreate (value, UriKind.Absolute, out uri))
throw new ArgumentException ("Not an absolute URL.", "value");
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
var msg = "Not an absolute URL.";
throw new ArgumentException (msg, "value");
}
_redirectLocation = uri;
}