diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperParseTreeRewriter.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperParseTreeRewriter.cs index fa557db9eb..8e3a7238c0 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperParseTreeRewriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/TagHelperParseTreeRewriter.cs @@ -136,8 +136,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy // scope. Block scopes are special cases in Razor such as @
would cause an error because there's no // matching end
tag in the template block scope and therefore doesn't make sense as a tag helper. BuildMalformedTagHelpers(_trackerStack.Count - activeTrackers, errorSink); - - Debug.Assert(activeTrackers == _trackerStack.Count); } BuildCurrentlyTrackedBlock();