Skip to content

Commit d8c9d49

Browse files
committed
Fixed failing tests
1 parent 3f125c1 commit d8c9d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.CodeAnalysis/QuickFixes/RemoveDuplicatedAnnotationQuickFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override void Fix(IInspectionResult result)
2525
var duplicateAnnotations = result.Target.Annotations
2626
.GroupBy(annotation => annotation.AnnotationType)
2727
.Where(group => !group.First().AllowMultiple && group.Count() > 1)
28-
.SelectMany(group => group.Take(group.Count() - 1));
28+
.SelectMany(group => group.Skip(1));
2929

3030
foreach (var annotation in duplicateAnnotations)
3131
{

0 commit comments

Comments
 (0)