Skip to content

Commit 2b3a401

Browse files
committed
Code celanup
1 parent 9a23801 commit 2b3a401

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Hl7.Fhir.Conformance/Specification/Snapshot/ElementDefnMerger.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ List<T> mergeCollectionWithSuppression<T>(List<T> snap, List<T> diff, Func<T, T,
532532
{
533533
if (snap.IsNullOrEmpty())
534534
{
535-
// If snap is empty we still need to check for suppress extensions in diff
535+
// If snap is empty we still need to check for suppress extensions
536536
result = diff.Where(x => !x.HasSuppressExtension()).Select(x => x.DeepCopy()).ToList();
537537
onConstraint(result);
538538
}
@@ -590,8 +590,8 @@ List<T> mergeCollectionWithSuppression<T>(List<T> snap, List<T> diff, Func<T, T,
590590
}
591591
else
592592
{
593-
// If snap is exactly equal to diff we still need to check for suppress extensions in diff
594-
result = snap.Where(x => !x.HasSuppressExtension()).Select(x => x.DeepCopy()).ToList();
593+
// If snap is exactly equal to diff we still need to check for suppress extensions
594+
result = snap.Where(x => !x.HasSuppressExtension()).ToList();
595595
}
596596
}
597597
return result;

src/Hl7.Fhir.STU3/Specification/Snapshot/ElementDefnMerger.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ List<T> mergeCollectionWithSuppression<T>(List<T> snap, List<T> diff, Func<T, T,
528528
{
529529
if (snap.IsNullOrEmpty())
530530
{
531-
// If snap is empty we still need to check for suppress extensions in diff
531+
// If snap is empty we still need to check for suppress extensions
532532
result = diff.Where(x => !x.HasSuppressExtension()).Select(x => x.DeepCopy()).ToList();
533533
onConstraint(result);
534534
}
@@ -586,8 +586,8 @@ List<T> mergeCollectionWithSuppression<T>(List<T> snap, List<T> diff, Func<T, T,
586586
}
587587
else
588588
{
589-
// If snap is exactly equal to diff we still need to check for suppress extensions in diff
590-
result = snap.Where(x => !x.HasSuppressExtension()).Select(x => x.DeepCopy()).ToList();
589+
// If snap is exactly equal to diff we still need to check for suppress extensions
590+
result = snap.Where(x => !x.HasSuppressExtension()).ToList();
591591
}
592592
}
593593
return result;

0 commit comments

Comments
 (0)