Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit db66744

Browse files
committed
Cleanup WebSockets.
1 parent 2577c16 commit db66744

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Microsoft.AspNet.Http/DefaultWebSocketManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public override bool IsWebSocketRequest
3838
{
3939
get
4040
{
41-
var webSocketFeature = WebSocketFeature;
42-
return webSocketFeature != null && webSocketFeature.IsWebSocketRequest;
41+
return WebSocketFeature != null && WebSocketFeature.IsWebSocketRequest;
4342
}
4443
}
4544

@@ -54,7 +53,6 @@ public override IList<string> WebSocketRequestedProtocols
5453

5554
public override Task<WebSocket> AcceptWebSocketAsync(string subProtocol)
5655
{
57-
var webSocketFeature = WebSocketFeature;
5856
if (WebSocketFeature == null)
5957
{
6058
throw new NotSupportedException("WebSockets are not supported");

0 commit comments

Comments
 (0)