We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f125c1 commit d8c9d49Copy full SHA for d8c9d49
Rubberduck.CodeAnalysis/QuickFixes/RemoveDuplicatedAnnotationQuickFix.cs
@@ -25,7 +25,7 @@ public override void Fix(IInspectionResult result)
25
var duplicateAnnotations = result.Target.Annotations
26
.GroupBy(annotation => annotation.AnnotationType)
27
.Where(group => !group.First().AllowMultiple && group.Count() > 1)
28
- .SelectMany(group => group.Take(group.Count() - 1));
+ .SelectMany(group => group.Skip(1));
29
30
foreach (var annotation in duplicateAnnotations)
31
{
0 commit comments