[Modify] Polish it

This commit is contained in:
sta 2020-09-23 20:28:58 +09:00
parent d7f4495f81
commit 8e9cb4ffd5

View File

@ -433,9 +433,11 @@ namespace WebSocketSharp.Net
if (prefs.ContainsKey (prefix)) { if (prefs.ContainsKey (prefix)) {
if (prefs[prefix] != prefix.Listener) { if (prefs[prefix] != prefix.Listener) {
throw new HttpListenerException ( var msg = String.Format (
87, String.Format ("There's another listener for {0}.", prefix) "There is another listener for {0}.", prefix
); );
throw new HttpListenerException (87, msg);
} }
return; return;