[Modify] Polish it

This commit is contained in:
sta 2020-08-18 21:19:38 +09:00
parent 063aae69b3
commit c8de370195

View File

@ -190,10 +190,11 @@ namespace WebSocketSharp.Net
/// </exception>
public bool Contains (string uriPrefix)
{
_listener.CheckDisposed ();
if (uriPrefix == null)
throw new ArgumentNullException ("uriPrefix");
_listener.CheckDisposed ();
return _prefixes.Contains (uriPrefix);
}