Any instead of Count in IIS UrlRewriteFileParser (#11540)
* Any instead of Count in IIS UrlRewriteFileParser * Remove unnecessary null check in IIS UrlRewriteFileParser
This commit is contained in:
parent
73e1b5de9e
commit
c6718d054d
|
|
@ -114,7 +114,7 @@ namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
|
|||
var grouping = ParseEnum(conditions, RewriteTags.LogicalGrouping, LogicalGrouping.MatchAll);
|
||||
var trackAllCaptures = ParseBool(conditions, RewriteTags.TrackAllCaptures, defaultValue: false);
|
||||
var adds = conditions.Elements(RewriteTags.Add);
|
||||
if (adds == null || adds.Count() == 0)
|
||||
if (!adds.Any())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue