From 65ef65e2d8f2021fa44acbb72eb3f9d232e44977 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 24 Mar 2015 13:08:04 -0700 Subject: [PATCH] PR feedback on IsEnvironment extension removing [NotNull] on environmentName parameter. String.Equals is expected to handle this appropriately. --- .../HostingEnvironmentExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Hosting.Interfaces/HostingEnvironmentExtensions.cs b/src/Microsoft.AspNet.Hosting.Interfaces/HostingEnvironmentExtensions.cs index 8de0d9f97a..9e9b5fd2ce 100644 --- a/src/Microsoft.AspNet.Hosting.Interfaces/HostingEnvironmentExtensions.cs +++ b/src/Microsoft.AspNet.Hosting.Interfaces/HostingEnvironmentExtensions.cs @@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Hosting /// True if the specified name is same as the current environment. public static bool IsEnvironment( [NotNull]this IHostingEnvironment hostingEnvironment, - [NotNull]string environmentName) + string environmentName) { return string.Equals( hostingEnvironment.EnvironmentName,