File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/Compiler/Microsoft.AspNetCore.Razor.Language/src Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,6 @@ public TagHelperBinding GetBinding(
132132
133133 private void Register ( TagHelperDescriptor descriptor )
134134 {
135- bool descriptorAdded = false ;
136-
137135 var count = descriptor . TagMatchingRules . Count ;
138136 for ( var i = 0 ; i < count ; i ++ )
139137 {
@@ -150,12 +148,7 @@ private void Register(TagHelperDescriptor descriptor)
150148 _registrations [ registrationKey ] = descriptorSet ;
151149 }
152150
153- // We don't need to keep trying to add the same Descriptor to the HashSet for each matching rule.
154- if ( ! descriptorAdded )
155- {
156- _ = descriptorSet . Add ( descriptor ) ;
157- descriptorAdded = true ;
158- }
151+ _ = descriptorSet . Add ( descriptor ) ;
159152 }
160153 }
161154}
You can’t perform that action at this time.
0 commit comments