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

Commit ecbe9a2

Browse files
committed
Corrected assignment order
Method should be ````csharp var local = _instance; if (local == null) { local = new(); _instance = local; } return local; ````
1 parent 0504378 commit ecbe9a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.Http/DefaultHttpContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ public override ISession Session
229229
var feature = SessionFeature;
230230
if (feature == null)
231231
{
232-
SessionFeature = new DefaultSessionFeature();
233-
feature = SessionFeature;
232+
feature = new DefaultSessionFeature();
233+
SessionFeature = feature;
234234
}
235235
feature.Session = value;
236236
}

0 commit comments

Comments
 (0)