PR feedback on IsEnvironment extension
removing [NotNull] on environmentName parameter. String.Equals is expected to handle this appropriately.
This commit is contained in:
parent
0dbbd2f655
commit
65ef65e2d8
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Hosting
|
|||
/// <returns>True if the specified name is same as the current environment.</returns>
|
||||
public static bool IsEnvironment(
|
||||
[NotNull]this IHostingEnvironment hostingEnvironment,
|
||||
[NotNull]string environmentName)
|
||||
string environmentName)
|
||||
{
|
||||
return string.Equals(
|
||||
hostingEnvironment.EnvironmentName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue