[Modify] Polish it

This commit is contained in:
sta 2020-04-01 19:55:01 +09:00
parent 55ba6ef40a
commit 8af604b45d

View File

@ -881,8 +881,11 @@ namespace WebSocketSharp.Net
private static string convert (string key) private static string convert (string key)
{ {
HttpHeaderInfo info; HttpHeaderInfo headerInfo;
return _headers.TryGetValue (key, out info) ? info.Name : String.Empty;
return _headers.TryGetValue (key, out headerInfo)
? headerInfo.Name
: String.Empty;
} }
private void doWithCheckingState ( private void doWithCheckingState (