From ba693dd38302945d5f4dcf9d40318f366a5e7168 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Mon, 10 Nov 2014 09:17:17 -0800 Subject: [PATCH] Code cleanup. --- src/Microsoft.AspNet.Owin/OwinEnvironment.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs index 2db8489a44..6e132e632f 100644 --- a/src/Microsoft.AspNet.Owin/OwinEnvironment.cs +++ b/src/Microsoft.AspNet.Owin/OwinEnvironment.cs @@ -84,18 +84,17 @@ namespace Microsoft.AspNet.Owin }; // owin.CallCancelled is required but the feature may not be present. - object ignored; if (context.GetFeature() != null) { _entries[OwinConstants.CallCancelled] = new FeatureMap(feature => feature.RequestAborted); } - else if (!_context.Items.TryGetValue(OwinConstants.CallCancelled, out ignored)) + else if (!_context.Items.ContainsKey(OwinConstants.CallCancelled)) { _context.Items[OwinConstants.CallCancelled] = CancellationToken.None; } // owin.Version is required. - if (!context.Items.TryGetValue(OwinConstants.OwinVersion, out ignored)) + if (!context.Items.ContainsKey(OwinConstants.OwinVersion)) { _context.Items[OwinConstants.OwinVersion] = "1.0"; }